Window10系统修改hosts文件的方法

背景:

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

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

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

 

方法:

Step1.同时按住Windows+X

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

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

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

Step5.修改并保存

 

Bingo!hosts文件被成功修改

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

posted @ 2020-03-05 10:02  千鱼千寻  阅读(338)  评论(0编辑  收藏  举报