即使端口80可用,Apache也不会运行 [英] Apache won't run even though port 80 is available

查看:127
本文介绍了即使端口80可用,Apache也不会运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,昨天我上次使用Apache时,打开了端口80,以便它可以访问它.今天,如果不更改任何设置,它将无法启动.我已经使Port 80可用,我尝试将Listen 80更改为Listen 8080和其他多个端口,但是它不起作用.自从我读到XAMPP可能是特权问题以来,我还以管理员身份打开了它,但这似乎也不是问题.我收到的错误消息是:

So I used Apache last time yesterday, opening up Port 80 so that it could access it. Today, without changing any settings, it won't start. I've made Port 80 available, I've tried changing the Listen 80 to Listen 8080 and multiple other ports but it won't work. I've also opened XAMPP in administrator since I've read that it could be privilege problems, but that doesn't seem to be the problem aswell. The error message I receive is:

17:16:51 [Apache]试图启动Apache应用...

17:16:51 [Apache] Attempting to start Apache app...

17:16:51 [Apache]检测到状态更改:正在运行

17:16:51 [Apache] Status change detected: running

17:16:51 [Apache]检测到状态更改:已停止

17:16:51 [Apache] Status change detected: stopped

17:16:51 [Apache]错误:Apache意外关闭.

17:16:51 [Apache] Error: Apache shutdown unexpectedly.

17:16:51 [Apache]这可能是由于端口被阻塞,缺少依赖项

17:16:51 [Apache] This may be due to a blocked port, missing dependencies,

17:16:51 [Apache]权限不当,崩溃或通过其他方法关闭.

17:16:51 [Apache] improper privileges, a crash, or a shutdown by another method.

17:16:51 [Apache]按下日志按钮以查看错误日志并检查

17:16:51 [Apache] Press the Logs button to view error logs and check

17:16:51 [Apache] Windows事件查看器以获取更多线索

17:16:51 [Apache] the Windows Event Viewer for more clues

17:16:51 [Apache]如果您需要更多帮助,请复制并发布

17:16:51 [Apache] If you need more help, copy and post this

17:16:51 [Apache]论坛上的整个日志窗口

17:16:51 [Apache] entire log window on the forums

Apache似乎也没有更新error_log文件.因此,我在那里找不到任何信息.我想这是问题所在,但是我没有找到解决办法.

Apache doesn't seem to update the error_log file aswell. So I can't find any information there. I guess this is the problem, but I've found nothing to solve it.

推荐答案

我假设Apache Service已安装并正在运行

i assume Apache Service is installed and running

Windows+R并运行services.msc

找到服务名称Apache并停止它.

Find service name Apache and stop it.

在xampp控制面板中,您会找到带有绿色标志或红色x标志的服务

In xampp Control panel you will find service with green sign or red x sign

卸载Apache服务,然后安装它,然后尝试在端口80上启动Apache

Uninstall Apache service then install it and then try to start Apache on port 80

这应该可以,否则尝试重新安装xampp.

this should work, else try reinstalling xampp.

这篇关于即使端口80可用,Apache也不会运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆