获取root权限
修改/etc/hosts

127.0.0.1 localhost

保存重启网络

/etc/init.d/networking restart