我做了vim /etc/hosts
,我的主机文件看起来像这样:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
为什么它不包含我经常访问的网站的ip地址,如stackoverflow.com,youtube.com,google.com,twitter.com等。?
发布于 2019-05-20 01:41:40
/etc/hosts文件不适用于最近访问的网站。如果你没有配置DNS服务或者你想添加你自己的服务器,你可以手动将IP和网站添加到你的主机文件中。
https://stackoverflow.com/questions/56210366
复制相似问题