当前位置:网站首页>学习路之PHP--phpstudy创建项目时“hosts文件不存在或被阻止打开”
学习路之PHP--phpstudy创建项目时“hosts文件不存在或被阻止打开”
2022-07-04 16:54:00 【hopetomorrow】
系统是:windows10 x64
发现C:\Windows\System32\drivers\etc目录下的hosts竟然不见了,显示隐藏文件依然看不见
具体方法如下:
1、打开C:\Windows\System32\drivers\etc;
2、打开“查看”选项;
3、去掉“隐藏受保护的操作系统文件”前面的勾,然后确定;
4、刷新一下,就会看到Hosts文件;
5、如果还是没有,则按下Windows徽标键+X键,点击“命令提示符(管理员)”,复制以下命令并在命令提示符中点击鼠标右键,点击“粘贴”,随后按回车键(Enter)执行:
for /f %P in ('dir %windir%\WinSxS\hosts /b /s') do copy %P %windir%\System32\drivers\etc & echo %P & Notepad %P
当显示“已复制1 个文件。”时即表示命令完成,同时将使用记事本打开 hosts 文件,此时 hosts 文件即恢复。
同样遇到hosts文件不见了的windows10系统用户们,不妨参考下上述小编为大家分享的教程。希望本教程能够帮助到所有有需要的朋友们!
边栏推荐
- 谷粒商城(一)
- 比李嘉诚还有钱的币圈大佬,刚在沙特买了楼
- 庆贺!科蓝SUNDB与中创软件完成七大产品的兼容性适配
- LD_ LIBRARY_ Path environment variable setting
- 一直以为做报表只能用EXCEL和PPT,直到我看到了这套模板(附模板)
- [cloud voice suggestion collection] cloud store renewal and upgrading: provide effective suggestions, win a large number of code beans, Huawei AI speaker 2!
- Nature Microbiology | 可感染阿斯加德古菌的六种深海沉积物中的病毒基因组
- 基于NCF的多模块协同实例
- Li Kou brush question diary /day7/2022.6.29
- Li Kou brush question diary /day6/6.28
猜你喜欢

力扣刷题日记/day4/6.26

Imitation of numpy 2

Tutorial on the use of Huawei cloud modelarts (with detailed illustrations)

Open source PostgreSQL extension age for graph database was announced as the top-level project of Apache Software Foundation

上市公司改名,科学还是玄学?

TCP两次挥手,你见过吗?那四次握手呢?

Stars open stores, return, return, return

Once the "king of color TV", he sold pork before delisting

Weima, which is going to be listed, still can't give Baidu confidence

五千字讲清楚团队自组织建设 | Liga 妙谈
随机推荐
网上开户安全吗?是真的吗?
Weima, which is going to be listed, still can't give Baidu confidence
Numpy 的仿制 2
Achieve animation effect through event binding
Clever use of curl command
力扣刷题日记/day4/6.26
五千字讲清楚团队自组织建设 | Liga 妙谈
用于图数据库的开源 PostgreSQL 扩展 AGE被宣布为 Apache 软件基金会顶级项目
[HCIA continuous update] network management and operation and maintenance
【系统盘转回U盘】记录系统盘转回U盘的操作
力扣刷題日記/day6/6.28
力扣刷题日记/day7/6.30
Interview summary of large factory Daquan II
[system disk back to U disk] record the operation of system disk back to U disk
SIGMOD’22 HiEngine论文解读
【Hot100】31. Next spread
Tutorial on the use of Huawei cloud modelarts (with detailed illustrations)
谷粒商城(一)
估值900亿,超级芯片IPO来了
[go language question brushing chapter] go conclusion chapter | introduction to functions, structures, interfaces, and errors



