参考
https://blog.csdn.net/qq_15192373/article/details/81093542
1. terminal中输入:
sudo gedit /etc/hosts
ip在前,域名在后
sudo /etc/init.d/dns-clean start sudo /etc/init.d/networking restart
使host文件生效
输入要访问的域名,可以正常访问 了
参考
https://blog.csdn.net/qq_15192373/article/details/81093542
sudo gedit /etc/hosts
ip在前,域名在后
sudo /etc/init.d/dns-clean start sudo /etc/init.d/networking restart
使host文件生效
输入要访问的域名,可以正常访问 了