1、hosts里的配置
# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.110.157 nagios2016.com nagios2016 ##一定要有本机的ip对应
2、hostname与/etc/sysconfig/network里的hostname一致,并与hosts里的一致
继续阅读