修改CentOS中的用户名
时间:2015-07-15 23:32 来源:linux.it.net.cn 作者:IT
需要修改2个文件:
/etc/hosts
/etc/sysconfig/network
然后重启
1、修改/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=*******
2、修改/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 *****
10.252.48.155 slave155
10.252.48.156 slave156
10.252.48.166 master166
关于/etc/hosts的更多内容,请参考
Linux修改/etc/hosts
(责任编辑:IT)
需要修改2个文件: /etc/hosts /etc/sysconfig/network 然后重启 1、修改/etc/sysconfig/network NETWORKING=yes HOSTNAME=******* 2、修改/etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 127.0.0.1 ***** 10.252.48.155 slave155 10.252.48.156 slave156 10.252.48.166 master166 关于/etc/hosts的更多内容,请参考 Linux修改/etc/hosts(责任编辑:IT) |