vi /etc/hosts 中添加ip地址和域名 111.111.111.111 aa.swddjtc.cn 然后重启 /etc/init.d/network restart 转载于:https://www.cnblogs.com/LynnChen/p/10746437.html