c:\\Windows\System32\drivers\etc
输入本地host文件所在目录,回车打开文件夹。
选择“以管理员身份打开 Windows PowerShell”
在窗口中输入
notepad .\hosts
打开hosts文件,进行编辑修改即可。