红联Linux门户
Linux帮助

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

发布时间:2008-09-10 01:08:10来源:红联作者:weimian
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
文章评论

共有 0 条评论