当前位置:网站首页>Phpstudy indicates that the hosts file may not exist or be blocked from being opened. How to resolve the failure of synchronizing hosts
Phpstudy indicates that the hosts file may not exist or be blocked from being opened. How to resolve the failure of synchronizing hosts
2022-06-12 14:49:00 【Li Yang's personal blog】
I believe many people will use it when building a local network environment PHPstudy, I rarely use a local integration environment , Not because of procedural problems but because of laziness , After all, after the local network environment is set up, it can not be used after work or in other areas , You have to remotely control other people's operations , More complicated , I don't need it, but the local environment of the company uses PHPstudy Built , Sometimes I will encounter some problems , But fortunately, it can be easily solved , It rarely publishes relevant articles , Today, after the site is built occasionally, you will be prompted “hosts The file may not exist or may be blocked from opening , Sync hosts Failure ”, the reason being that win10 System , The first reaction is the issue of authority , The solution is to give the local hosts jurisdiction .
resolvent :
First we have to find hosts File path :C:\Windows\System32\drivers\etc Under the table of contents , see hosts file , Note that the file does not have any suffixes , Then check whether the email attribute is checked “ read-only ” Pattern , Pictured :
If read only is not checked, click on the top tab“ Security ” Check to see if there is Users perhaps Everyone, If you have, give it to me “ Complete control of ” allow , If not, click the bottom “ senior ” Options , Pictured :
After clicking advanced, a new window will pop up. In advanced security settings, click Add... At the bottom , Because I set it up before , So there are already Everyone and User We have the authority to , normal User Permission is enough , But I'm not sure they all work , Pictured :
Click... In the permission item “ Choose the subject ” Pop up a new window to select “ senior ”, Select... In the new window “ Find now ”, Find the corresponding user , Click ok , Pictured :
Select the corresponding user , We check the “ Complete control of ” Pictured :
Finally, click OK , Then return PHPstudy, Create a new site , Set relevant configuration and domain name , Then confirm and you will be prompted that the website is successfully created , see hosts The file will find the latest synchronized site information , In fact, this problem is not difficult , It means that the permission is not given to all or the file is set with read-only permission, that is, it can only be read but not written , So you will be prompted to synchronize hosts Failure , Okay , Problem solving , Once again completed another article “ great ” Works , Ha ha ha , If you have any questions, please leave a message , Go scuba diving ~
边栏推荐
- Jetpack架构组件学习(3)——Activity Results API使用
- ADB command (I) record
- C 字符串
- C scanf函数
- recursive learning
- JUnit exception, a method that asserts that the exception information is not empty
- Interview (XI) futu written test questions
- 【SimpleDateFormat】1. Conversion of date type and text type 2 Thread unsafe
- And, or, not equal, operator
- selenium进阶
猜你喜欢

C 字符串
![JS (I) error [err\u module\u not\u found]: cannot find package 'UUID' imported](/img/a4/ef2d73576e027a2179ec9251167fa4.jpg)
JS (I) error [err\u module\u not\u found]: cannot find package 'UUID' imported

Yiwei lithium energy plans to raise 9billion yuan: liujincheng and luojinhong jointly subscribe for 6billion yuan of layout Optical Valley

新技术:高效的自监督视觉预训练,局部遮挡再也不用担心!

JMeter (V) pressure test of Excel file upload interface

你敢信?开发一个管理系统我只用了两天
![[wechat applet] 4 Introduction to wechat developer tools](/img/9d/0d6c5cc675fb70dde98b25649bd8d8.jpg)
[wechat applet] 4 Introduction to wechat developer tools
![[wechat applet] 6.1 applet configuration file](/img/8c/eadaa6d0cadde459c3f817a23303ea.jpg)
[wechat applet] 6.1 applet configuration file

tc菜单分割

数据的收集
随机推荐
[wechat applet] 3 The first wechat applet
野指针理解
数据的收集
Jetpack架构组件学习(3)——Activity Results API使用
ADSL
宝塔面板新建数据库提示数据库名不能大于16位的解决方法
selenium之元素定位
MobileOne: 移动端仅需1ms的高性能骨干,你值得拥有!
Interview (XI) futu written test questions
sql跨库注入
【Optional】1. Map and ifpresent 2 Ofnullable and orelse
Energy chain smart electronics landed on NASDAQ: Bain is the shareholder to become the first share of charging services in China
模块八
[wechat applet] 1 Introduction to wechat applet
Junit多线程的写法
Data collection
亿纬锂能拟募资90亿:刘金成骆锦红夫妇合计认购60亿 布局光谷
Two months' experience in C language
安凯微电子冲刺科创板:年营收5亿 小米产业基金是股东
[SPARK][CORE] 面试问题之什么是 external shuffle service?