更改主机名:
修改 /etc/hosts /etc/hostname
更改IP地址
修改/etc/network/interfaces
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
上面是使用DHCP
如果要手工设定,使用如下
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.254
broadcast 192.168.1.255
network 192.168.1.0
设定dns服务器:
修改 /etc/resolv.conf
修改时区:
dpkg-reconfigure tzdata
阅读(832) | 评论(0) | 转发(0) |