1.通过修改etc/hosts文件进行,推荐一个持续更新hosts的博客:https://laod.cn/hosts/2017-google-hosts.html
其中必须注意,google添加白名单(快捷方式目标既有信息 最后面 添加--quic-host-whitelist="https://www.google.com.hk" --origin-to-force-quic-on=www.google.com.hk:443),hosts立即生效命令(ipconfig /flushdns),访问要带https的安全连接(https://www.google.com.hk/)