Chinaunix首页 | 论坛 | 博客
  • 博客访问: 758841
  • 博文数量: 201
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 2391
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-06 22:16
文章分类

全部博文(201)

文章存档

2011年(1)

2010年(2)

2009年(57)

2008年(141)

我的朋友

分类: LINUX

2009-11-12 11:09:09

更改主机名:
修改 /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
阅读(800) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~