switchhosts没有写入权限解决方法
SwitchHosts
Switch hosts quickly!
项目地址:https://gitcode.com/gh_mirrors/sw/SwitchHosts
·
背景
switchhost提示没有写入权限,无法进行切换。提示:switchhost必须左右面板都打开才会看到提示,只打开左侧面板不会有提示。
我成功的方案
管理员身份打开powershell, 输入notepad "%systemroot%/system32/drivers/etc/hosts, 打开hosts文件随便输入点什么(比如:空格、换行、实际修改内容)重新保存后,switchhost便可使用
其他方案
hosts文件相关问题引发
进入C:\Windows\System32\drivers\etc右键点击hosts,进入属性>常规,将只读取消勾选,如展示图1
进入C:\Windows\System32\drivers\etc右键点击hosts,进入属性>安全修改当前用户权限:写入、修改,如展示图2。亦可选择完全控制。
关闭switchhosts,重新以管理员身份启动该程序
浏览器相关问题引发
使用其他代理工具,浏览器会优先考虑代理工具的代理
浏览器缓存导致,可关闭浏览器重新开启或清空缓存
其他问题引发
关闭其他杀毒软件,某些杀毒软件会采取保护措施,自动恢复hosts为默认状态
重启电脑后以管理员身份打开switchhosts
| 展示图1 | 展示图2 |
|---|---|
Switch hosts quickly!
最近提交(Master分支:3 个月前 )
ddf96318
Bump vite from 4.5.5 to 4.5.9 1 个月前
4ee74789
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.5 to 4.5.9.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.9/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.9/packages/vite)
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com> 1 个月前
更多推荐




所有评论(0)