需要修改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) |