当前位置:网站首页>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 ~
边栏推荐
- [wp][beginner level] attack and defense world game
- Detailed explanation of factory pattern (simple factory pattern, factory method pattern, abstract factory pattern) Scala code demonstration
- Visual positioning guidance system for industrial manipulator (robot)
- Array one
- [SPARK][CORE] 面试问题之谈一谈Push-based shuffle
- Huawei equipment is configured with H virtual private network
- webdriver入门
- C secret arts script Chapter 5 (paragraph) (Section 3)
- [ROC] aspriseocr C # English, Digital identification (not Chinese)
- [wechat applet] 1 Introduction to wechat applet
猜你喜欢
![[Writeup]BUU SQL COURSE1[入门级]](/img/eb/1b2541b04ca231cb07f1f3706f51c7.png)
[Writeup]BUU SQL COURSE1[入门级]

Ankai microelectronics rushes to the scientific innovation board: the annual revenue of 500million Xiaomi industry fund is the shareholder
![[wp][入门]攻防世界-game](/img/07/1ea54d14ba3caca25a68786d5be4a6.png)
[wp][入门]攻防世界-game

JMeter (V) pressure test of Excel file upload interface

C secret arts script Chapter 5 (paragraph) (Section 3)

Visual positioning guidance system for industrial manipulator (robot)

Two methods of implementing asynchronous calling function with QT

能链智电登陆纳斯达克:贝恩是股东 成中国充电服务第一股

【LDA】EM变分推理 粗略版笔记【待完善
![[wechat applet] 5 Applet structure directory](/img/d6/4796c8b8fe482b261c5a1fbf79ba2b.jpg)
[wechat applet] 5 Applet structure directory
随机推荐
Crawler problem set (I) record
C 字符串
QT link error: undefined reference to VTable for "XXX“
Huawei equipment configuration BGP as number replacement
Xshell (I) is missing mfc110u DLL file resolution
【LDA】LDA主题模型笔记—主要是狄利克雷
Software package for optimization scientific research field
阿里建议所有 POJO 类属性使用包装类,但这些坑你有注意到吗?
Easygui query the company name in the document
Data collection
Serialization and deserialization mechanism in terms of games
指针相关概念
工业机械臂(机器人)视觉定位引导系统
String concatenation and ternary operators
Two methods of QT using threads
junit测试套件方法整理(方法二不太好用)
Introduction to QT reflection mechanism and signal slot mechanism
Installation and use of mat
Ali suggests that all POJO attributes use wrapper classes, but have you noticed these pits?
Yiwei lithium energy plans to raise 9billion yuan: liujincheng and luojinhong jointly subscribe for 6billion yuan of layout Optical Valley