找到hosts文件
- C:\Windows\System32\drivers\etc
操作步骤
- 点击 ===> 以管理员身份打开Windows PowerShell(A),如下图所示
- 之后执行两个命令 ===> cmd
- 在执行 ===> notepad hosts
- 修改完之后 Ctrl + s 保存即可
本文介绍如何使用管理员权限在Windows系统中找到并编辑hosts文件。通过PowerShell和记事本,可以轻松修改hosts文件,实现网站屏蔽或重定向等功能。
- C:\Windows\System32\drivers\etc
- 点击 ===> 以管理员身份打开Windows PowerShell(A),如下图所示
- 之后执行两个命令 ===> cmd
- 在执行 ===> notepad hosts
- 修改完之后 Ctrl + s 保存即可
3859
5117