sudo vi /etc/hosts
在mac上配置了hosts,使用
cat /etc/hosts
查看,已经写进去了,然后重启电脑、使用
ping xxx.com
还是找不到配置的IP地址
sudo vi /etc/hosts
在mac上配置了hosts,使用
cat /etc/hosts
查看,已经写进去了,然后重启电脑、使用
ping xxx.com
还是找不到配置的IP地址
转载于:https://www.cnblogs.com/coolcold/p/11346898.html