[root@hostnametest4 ~]# hostname -i 0.0.0.0 原因:是因为没有配置hosts解析,配置hosts解析即可 cat >/etc/hosts<<EOF 192.168.0.91 test1 192.168.0.92 test2 192.168.0.93 test3 192.168.0.94 test4 EOF
hostname -i 出现0.0.0.0解决
原文:https://www.cnblogs.com/effortsing/p/10357171.html