MAMP PRO - 在Windows上无法访问主机文件

问题描述:

今天我已经开始使用MAMP PRO for Windows,它现在在alpha版本中。 但即时通讯尝试使动态DNS的工作,这似乎并不适用于我。MAMP PRO - 在Windows上无法访问主机文件

我每次启动MAMP PRO,我得到以下错误:

MAMP PRO has detected that access to hosts file is blocked. MAMP PRO needs access to hosts file to work properly. It is probably blocked with Antivirus program or restricted user privillages. Please close MAMP PRO, set your Antivirus program or user privillages (so that access to hosts file is writable) and start MAMP PRO again. 

我曾尝试切换我的杀毒软件了,我并设置权限为可写,可执行,可读取等每一个用户的我的机器。

我也尝试以管理员身份运行MAMP PRO。

任何想法和/或建议?

谢谢!

+0

你可以尝试编辑和保存主机在记事本文件直接? (当记事本以管理员身份运行时?)大多数Windows安装到主机文件的路径是C:\ Windows \ System32 \ drivers \ etc \ hosts – 2015-04-20 12:56:03

你有没有在这个文件上只读只读?

  1. 确保文件不是只读的。导航到%systemroot%\ system32 \ drivers \ etc \并右键单击 - >在主机上的属性,并取消选中只读

  2. 取得文件的所有权(可能不必要,我在找到之前先找到只读)。右键单击 - >属性 - >安全性 - >高级 - >所有者 - >编辑,然后选择您的名字并确定出所有提示。

  3. 我也给了系统中所有用户的完全权限,就像你提到的那样。

我在遇到同样的问题后,在Windows 7上用MAMP Pro测试了这个。这让我兴奋起来,希望它有帮助。

参考文献: http://www.tomshardware.com/faq/id-1821155/edit-hosts-file-windows.html

+0

非常感谢!,这对我很有用! – 2015-05-19 15:33:46