修改/etc/hosts文件 127.0.0.1 主机名 localhost.localdomain localhost 或是再添加一条 127.0.0.1 主机名 转载于:https://www.cnblogs.com/shouwangzhe-/p/3929412.html