首页 > 技术文章 > Window10系统修改hosts文件的方法

QianyuQian 2020-03-05 10:02 原文

背景:

调试smtp程序时遇到问题,度娘说需要修改hosts文件

使用老方法修改了很久,始终无法保存

又百度了一下,在此重温,以加深记忆

 

方法:

Step1.同时按住Windows+X

Step2.选择Windows PowerShell(管理员)(A)

Step3.在弹出的窗口中输入“notepad"

Step4.记事本左上角打开hosts文件

Step5.修改并保存

 

Bingo!hosts文件被成功修改

注:hosts文件路径:C:\Windows\System32\drivers\etc\hosts

推荐阅读