当前位置:网站首页>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 ~
边栏推荐
- 【Environment】1. Get the configuration in YML through the environment in the configuration class
- QT link error: undefined reference to VTable for "XXX“
- Process abstraction of program construction and interpretation
- 产业端:618的新战场
- C secret arts script Chapter 2 (detailed explanation of pointer) (Section 2)
- Common assertions in JUnit testing
- [datetmeformatter] realize the conversion between localdatetime and text
- 函数递归示例
- C magic skill Chapter 4 (detailed explanation of memory function)
- Mysql之索引和视图
猜你喜欢

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

【LDA】EM变分推理 粗略版笔记【待完善

C 数据类型

Autofac初学(1)
![[wechat applet] 2 Environmental preparation](/img/8d/7bb68ca7d10751a6e992a53c5eff4a.jpg)
[wechat applet] 2 Environmental preparation

QT to realize the simple use of SQLite database
![[wechat applet] 5 Applet structure directory](/img/d6/4796c8b8fe482b261c5a1fbf79ba2b.jpg)
[wechat applet] 5 Applet structure directory

C 操作符

New technology: efficient self-monitoring visual pre training, local occlusion no longer need to worry!

Junit多线程的写法
随机推荐
亿纬锂能拟募资90亿:刘金成骆锦红夫妇合计认购60亿 布局光谷
启明云端分享| 通过Matter协议实例演示开关通过matter协议来做到对灯亮灭的控制
你敢信?開發一個管理系統我只用了兩天
ADSL
Thinking: what is asynchrony and thread safety
ADB control installation simulator
Two methods of QT using threads
【Optional】1. Map and ifpresent 2 Ofnullable and orelse
C常量,不能改变
Junit测试中常用的断言
面向优化科学研究领域的软件包
三维重建系统 | L3双视角运动恢复结构(SFM双目SFM)
[SPARK][CORE] 面试问题之什么是 external shuffle service?
工业机械臂(机器人)视觉定位引导系统
JS (I) error [err\u module\u not\u found]: cannot find package 'UUID' imported
Markdown edit
Xshell (I) is missing mfc110u DLL file resolution
三维重建系统 | L3增量运动恢复结构(增量SFM)
Tensorrt based in-depth learning model deployment practice tutorial!
selenium-webdriver之断言