查看你的hostname centos
hostname=centos58 .net
而后vi /etc/hosts 添加hostname对应的ip blog
103.24.3.171 centos58 ip
参考http://blog.csdn.net/tammy_zhu/article/details/5563383 get