修改之前
[root@localhost ~]# cat /etc/sysconfig/network.back
NETWORKING=yes
HOSTNAME=localhost.localdomain
[root@localhost ~]# cat /etc/hosts.back
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@localhost ~]#
修改之后
[root@localhost ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=willee.localdomain
[root@localhost~]# cat /etc/hosts
127.0.0.1 willee willee.localdomain localhost4 localhost4.localdomain4
::1 willee willee.localdomain localhost6 localhost6.localdomain6
[root@localhost~]#
重新登录或重启后
[root@willee ~]#
[root@willee ~]#
~_~
阅读(969) | 评论(0) | 转发(0) |