当前位置:网站首页>学习路之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系统用户们,不妨参考下上述小编为大家分享的教程。希望本教程能够帮助到所有有需要的朋友们!
边栏推荐
- Why are some online concerts always weird?
- 力扣刷题日记/day2/2022.6.24
- 力扣刷题日记/day3/2022.6.25
- Performance test of Gatling
- 12 - explore the underlying principles of IOS | runtime [isa details, class structure, method cache | t]
- 【2022年江西省研究生数学建模】水汽过饱和的核化除霾 思路分析及代码实现
- 90后开始攒钱植发,又一个IPO来了
- Pytoch deep learning environment construction
- How to download files using WGet and curl
- “在越南,钱就像躺在街上”
猜你喜欢

力扣刷题日记/day8/7.1

Is it science or metaphysics to rename a listed company?

力扣刷题日记/day1/2022.6.23

How to test MDM products

With an estimated value of 90billion, the IPO of super chip is coming
![[HCIA continuous update] network management and operation and maintenance](/img/a4/406b145793b701b001f04c7538dab3.png)
[HCIA continuous update] network management and operation and maintenance

1、 Introduction to C language

一直以为做报表只能用EXCEL和PPT,直到我看到了这套模板(附模板)

爬虫初级学习

输入的查询SQL语句,是如何执行的?
随机推荐
力扣刷题日记/day1/2022.6.23
Performance test of Gatling
Russia arena data releases PostgreSQL based products
被忽视的问题:测试环境配置管理
Reptile elementary learning
[proteus simulation] printf debugging output example based on VSM serial port
Detailed explanation of the maturity classification of ITSS operation and maintenance capability | one article clarifies the ITSS certificate
大厂面试总结大全二
蓝桥:合根植物
What types of Thawte wildcard SSL certificates provide
How to improve development quality
Numpy 的仿制 2
Crawler (6) - Web page data parsing (2) | the use of beautifulsoup4 in Crawlers
fopen、fread、fwrite、fseek 的文件处理示例
Pytoch deep learning environment construction
[211] go handles the detailed documents of Excel library
TCP两次挥手,你见过吗?那四次握手呢?
android使用SQLiteOpenHelper闪退
vbs或vbe如何修改图标
ISO27001认证办理流程及2022年补贴政策汇总



