红联首页 凝聚Linux人的力量
菜鸟过关 | 精华文档 | 同城人(交友) | 我与Linux的故事 | Linux新闻 | Linux视频 | Linux人才 | 软件下载 | 大学校园 | English
发新话题
打印

Changes under Linux computer (as an example to CentOS5.2)

Changes under Linux computer (as an example to CentOS5.2)

do as the following steps:

1)open a shell, tpye the command below:

[admingu@googe ~]$ sudo hostname googe

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

[admingu@googe ~]$ sudo vi /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=googe

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

[admingu@googe ~]$ sudo 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
127.0.0.1        googe                           googe

TOP

发新话题