修改Linux中的用户名


需要修改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的更多内容,请参考http://blog.csdn.net/wzy_1988/article/details/8442853


posted @ 2014-07-24 11:40  eagleGeek  阅读(209)  评论(0编辑  收藏  举报