SwitchHosts! ERPERM:operation not permitted 解决方案
SwitchHosts
Switch hosts quickly!
项目地址:https://gitcode.com/gh_mirrors/sw/SwitchHosts
·
SwitchHosts!是一款帮助我们很好管理Hosts的工具,如果在有多个环境并且没有做域名解析,每次都要到C:\Windows\System32\drivers\etc\hosts 中配置host。但是如果用文档配置host是在系统环境中所不允许的,需要把hosts的文件复制到其他位置,再在其他位置打开,编辑了之后再把修改的文件覆盖原来的hosts。
所以这样的操作非常不方便,SwithchHosts!这个工具就应运而生了,他可以像文本编辑的方式来修改host。
但在使用过程中会出现如下图所示的情况:

这种情况就是说这个程序需要管理员才能启动。
1、简单情况就是,对着SwitchHosts!文件邮件鼠标,点击管理员启动,就可以使用了。
2、如果如图2这样做了还是报上图所示的错误,那就说明是hosts文件本身出错了,他的自身属性不允许你进行操作。这时候最简单的方式就是,删除hosts文件,当然,保险起见,删除之前先备份。然后,在右键SwitchHosts!,管理员启动,这时候会在hosts文件原路径重新生成一份hosts文件,这时候问题就彻底解决了。
3、如果还是不行,右键hosts 文件属性,将"只读"去掉,在选择"安全",将当前用户的权限授予完全可操作。


Switch hosts quickly!
最近提交(Master分支:4 个月前 )
68fa4c5b
Bump react-router and react-router-dom 9 天前
a3356b32
Bumps [react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router) to 7.12.0 and updates ancestor dependency [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom). These dependencies need to be updated together.
Updates `react-router` from 7.5.2 to 7.12.0
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router@7.12.0/packages/react-router)
Updates `react-router-dom` from 7.5.2 to 7.12.0
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@7.12.0/packages/react-router-dom)
---
updated-dependencies:
- dependency-name: react-router
dependency-version: 7.12.0
dependency-type: indirect
- dependency-name: react-router-dom
dependency-version: 7.12.0
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com> 9 天前
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐



所有评论(0)