我已经安装了 wampserver。但它始终是一个红色的托盘图标。
- 图标工具提示消息:
本地服务器 - 2 项服务均未运行
。 80端口未被占用;使用 Apache ► 服务 ► 测试端口 80 检查:
Warning: chmod(): Permission denied in C:\wamp\scripts\config.inc.php on line 68 Impossible to modify the file C:\WINDOWS\system32\drivers\etc\hosts to be writab le The file C:\WINDOWS\system32\drivers\etc\hosts is not writable ***** Test which uses port 80 ***** ===== Tested by command netstat filtered on port 80 ===== Test for TCP Port 80 is not found associated with TCP protocol Test for TCPv6 Port 80 is not found associated with TCP protocol ===== Tested by attempting to open a socket on port 80 ===== Your port 80 is not actually used.
Apache ► 服务管理 ► 安装服务 cmd 窗口中的问题: 按 Enter 关闭窗口,没有任何反应。等待也没有任何好处。
怎么了?
更新
曾尝试在
httpd.conf
中更改 Apache 的端口号(同时更改为 81 和 8080):听 0.0.0.0:8080 听 [::0]:8080 服务器名称 localhost:8080
没有帮助。
最佳答案
我遇到了同样的问题,解决方案太简单了:
“以管理员身份运行它。”
- 无需更改端口或其他额外配置...
您可以通过右键单击程序图标并在出现的菜单中选择“以管理员身份运行”选项来执行此操作。
也可以通过右键单击程序图标并选择“属性”来自动执行此过程。 打开属性窗口后,我们转到“兼容性”选项卡。在“配置”区域,我们标记“以管理员身份运行此程序”选项。 然后我们将单击“应用”,然后单击“确定”。 准备好!从现在开始,每次我们运行该程序时,它都会以管理员模式运行。
(今天,2019年5月8日,我看到@riggsfolly 比我早很多在评论中回复了。我的认可。)
关于php - Windows 8(64 位)中的 WAMP 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35134861/