windows想必很多友友都已经知道怎么通过改host来访问google。但是对于mac osx,大家不一定都知道怎么去修改它。
下面,我来告诉大家怎么去修改host:
第一步 打开Launchpad 也就是桌面上的小火箭图标文章源自:知您网(zhiniw.com)知您网-https://www.zhiniw.com/host-google-mac.html
找到终端有些系统可能会显示 terminal 文章源自:知您网(zhiniw.com)知您网-https://www.zhiniw.com/host-google-mac.html
文章源自:知您网(zhiniw.com)知您网-https://www.zhiniw.com/host-google-mac.html
文章源自:知您网(zhiniw.com)知您网-https://www.zhiniw.com/host-google-mac.html
打开它。输入sudo vi /etc/hosts 文章源自:知您网(zhiniw.com)知您网-https://www.zhiniw.com/host-google-mac.html
文章源自:知您网(zhiniw.com)知您网-https://www.zhiniw.com/host-google-mac.html
文章源自:知您网(zhiniw.com)知您网-https://www.zhiniw.com/host-google-mac.html
文章源自:知您网(zhiniw.com)知您网-https://www.zhiniw.com/host-google-mac.html
它会提示你输入你的管理密码,才能进行下一步。
之后按下i 才可以编辑文件。 文章源自:知您网(zhiniw.com)知您网-https://www.zhiniw.com/host-google-mac.html
文章源自:知您网(zhiniw.com)知您网-https://www.zhiniw.com/host-google-mac.html
然后将我附件txt里面的内容复制到空白地方
复制完之后,先按Esc 然后再按shift+: 冒号
输入wq 保存并退出的意思。
重启mac ,打开google 看看是否可以顺畅的使用谷歌了


1F
谢谢分享