Chinaunix首页 | 论坛 | 博客
  • 博客访问: 449808
  • 博文数量: 179
  • 博客积分: 3236
  • 博客等级: 中校
  • 技术积分: 1860
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-25 19:13
文章分类

全部博文(179)

文章存档

2011年(34)

2008年(8)

2007年(27)

2006年(110)

分类: LINUX

2006-05-03 22:38:47


Linux下更改计算机名
 
do as the following steps:
 
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
 
====================================================================


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