Chinaunix首页 | 论坛 | 博客
  • 博客访问: 92669524
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-04-29 13:15:04


1)open a shell, tpye the command below:

[root@kcn-110]#hostname kcn-110mw



2)edit the file:/etc/sysconfig/network, change the value of 'HOSTNAME':

[root@kcn-110]#vi /etc/sysconfig/network

=======================================================================

NETWORKING=yes
HOSTNAME=kcn-110mw

=======================================================================


3)edit the file:/etc/hosts, change the ip address and your hostname

[root@kcn-110]#vi /etc/hosts

====================================================================

# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1      localhost.localdomain   localhost
192.168.0.110   kcn-110mw       kcn-110mw

====================================================================


4)reboot network
/etc/sysconfig/network文件
改了以后要重启网络
/etc/init.d/network restart
service network restart

阅读(746) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~