修改主机名三步曲
第一步:
[root@dnion src]# hostname gdgz
第二步:
[root@dnion src]# vi /etc/sysconfig/network
修改/etc/sysconfig/network中的HOSTNAME
NETWORKING=yes
HOSTNAME=gdgz
GATEWAY=121.14.39.129
第三步:
[root@gdgz ~]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 gdgz localhost.localdomain localhost
修改/etc/hosts文件
阅读(1177) | 评论(0) | 转发(0) |