5

我在我的 Windows 7 机器上从他们的网站安装了 apache msi。

通过 IE 尝试我的域名和端口名称时,我在日志文件中收到以下错误,

Starting the Apache2 service
(OS 5)Access is denied.  : Apache2: Failed to open the service.
Starting the Apache2 service
(OS 5)Access is denied.  : Apache2: Failed to open the service.
Starting the Apache2 service
(OS 5)Access is denied.  : Apache2: Failed to open the service.
Starting the Apache2 service
(OS 5)Access is denied.  : Apache2: Failed to open the service.
(OS 5)Access is denied.  : Failed to open the Apache2 Service

任何帮助都会很棒。

4

3 回答 3

14

在打开命令提示符时,您必须以“以管理员身份运行”打开它,然后您才能在 Windows 中成功启动/停止 apache 服务器

在windows中启动/停止a​​pache服务器的步骤:单击开始菜单->在搜索框中输入cmd->右键单击cmd-->以管理员身份运行-->进入apache服务器的bin文件夹->开始/停止服务器

检查日志的状态

希望这能解决你的问题

于 2013-04-02T17:51:09.800 回答
2

检查管理员安全组是否具有对 xampp 文件夹或 xampplite 文件夹的完全访问权限。

于 2013-09-11T09:37:39.257 回答
1

Apache 只需要写入日志目录的权限。您可以将此授予运行 httpd.exe 进程的用户

于 2018-05-14T09:41:35.970 回答