红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Debian

DELL服务器DEBIAN安装

发布时间:2008-01-09 00:33:49来源:红联作者:mpuPosi
一.准备工作
开机后按CTRL+E配置BIOS
选择virtual media configuration
将virtual media attected 更改为 detected
注:系统启动后会将DISK识别为USB移动设备,上述方法可以解决这个问题

二.开始安装DEBIAN大概步骤
1.选择语言->地区->配置网络暂可先跳过
2.因为网络不通,到是否镜像时选择否
3.配置ROOT密码和新用户帐号口令
4.安装完成重启后进入系统,使用root登录系统

三.配置网络
1.查看网卡工作状态
# mii-tool
eth0: negotiated 100baseTx-FD, link ok
eth1: negotiated 100baseTx-FD, link ok
eth2: no link
eth3: no link
列表显示eth0和eth1工作正常

2.修改网络配置文件,添加静态IP地址
# vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.15.163
netmask 255.255.255.0
gateway 192.168.15.1
auto eth1
iface eth1 inet static
address 192.168.16.117
netmask 255.255.255.0
gateway 192.168.16.1

3.重启网络执行两次,网络配置即可生效
# /etc/init.d/networking restart

4.重启网卡
# ifdown eth0
# ifup eth0

# ifdown eth1
# ifup eth1

5.查看IP,检测网络是否配通
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:8B:33:7C:0F
inet addr:192.168.15.163 Bcast:192.168.15.255 Mask:255.255.255.0
inet6 addr: fe80::218:8bff:fe33:7c0f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:267284 errors:0 dropped:0 overruns:0 frame:0
TX packets:167939 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:131509974 (125.4 MiB) TX bytes:15676680 (14.9 MiB)
Interrupt:169 Memory:f4000000-f4011100

eth1 Link encap:Ethernet HWaddr 00:18:8B:33:7C:0D
inet addr:192.168.16.117 Bcast:192.168.16.255 Mask:255.255.255.0
inet6 addr: fe80::218:8bff:fe33:7c0d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:197202 errors:0 dropped:0 overruns:0 frame:0
TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:184430172 (175.8 MiB) TX bytes:4036 (3.9 KiB)
Interrupt:169 Memory:f8000000-f8011100

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:105 errors:0 dropped:0 overruns:0 frame:0
TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8808 (8.6 KiB) TX bytes:8808 (8.6 KiB)

# ping 192.168.15.2
PING 192.168.15.2 (192.168.15.2) 56(84) bytes of data.
64 bytes from 192.168.15.2: icmp_seq=1 ttl=128 time=3.22 ms
64 bytes from 192.168.15.2: icmp_seq=2 ttl=128 time=0.435 ms
64 bytes from 192.168.15.2: icmp_seq=3 ttl=128 time=0.429 ms

--- 192.168.15.2 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5002ms
rtt min/avg/max/mdev = 0.402/0.886/3.223/1.045 ms

6.配置DNS
# vi etc/resolv.conf
nameserver 202.xxx.xxx.xxx

重启网络
# etc/init.d/networking restart
wget测试可以出去就OK了

四.安装SSH
# apt-get install openssh-server

检测SSH是否安装成功
root 2514 1 0 Jan03 ? 00:00:00 /usr/sbin/sshd

现在我们可以远程连接服务器了。
文章评论

共有 0 条评论