首页 > 编程知识 正文

win10修改hosts文件无权限,修改hosts文件无权限 win7

时间:2023-05-05 07:22:03 阅读:281959 作者:3357

github上的图片显示不出来,查了一下,发现是要改C:WindowsSystem32driversetc下的hosts文件,要在文件末尾增加以下内容:

# GitHub Start 140.82.113.3 github.com140.82.114.20 gist.github.com 151.101.184.133 assets-cdn.github.com151.101.184.133 raw.githubusercontent.com151.101.184.133 gist.githubusercontent.com151.101.184.133 cloud.githubusercontent.com151.101.184.133 camo.githubusercontent.com151.101.184.133 avatars0.githubusercontent.com199.232.68.133 avatars0.githubusercontent.com199.232.28.133 avatars1.githubusercontent.com151.101.184.133 avatars1.githubusercontent.com151.101.184.133 avatars2.githubusercontent.com199.232.28.133 avatars2.githubusercontent.com151.101.184.133 avatars3.githubusercontent.com199.232.68.133 avatars3.githubusercontent.com151.101.184.133 avatars4.githubusercontent.com199.232.68.133 avatars4.githubusercontent.com151.101.184.133 avatars5.githubusercontent.com199.232.68.133 avatars5.githubusercontent.com151.101.184.133 avatars6.githubusercontent.com199.232.68.133 avatars6.githubusercontent.com151.101.184.133 avatars7.githubusercontent.com199.232.68.133 avatars7.githubusercontent.com151.101.184.133 avatars8.githubusercontent.com199.232.68.133 avatars8.githubusercontent.com # GitHub End

但是增加了后发现,无法修改hosts文件,原因大概就是权限的问题。

在这里找到了比较方便的方法:

在随便什么位置新建hosts.txt文件。把 C:WindowsSystem32driversetc 的 hosts 文件里的内容复制到这个hosts.txt文件中,然后进行自己想要的修改。把 hosts.txt 的后缀去掉,因为 C:WindowsSystem32driversetc 里的 hosts 文件是没有后缀的。把这个hosts文件放入 C:WindowsSystem32driversetc 中去覆盖原来的 hosts 文件,这样就大工告成啦~~

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。