Linux Apache2未启动

Linux Apache2未启动,linux,apache,apache2,Linux,Apache,Apache2,每次尝试启动apache时,我都会得到以下结果: #: /etc/apache2 apache2ctl restart httpd not running, trying to start no listening sockets available, shutting down Unable to open logs Action 'restart' failed. The Apache error log may have more information. 我已使用以下命令扫描端口80

每次尝试启动apache时,我都会得到以下结果:

#: /etc/apache2 apache2ctl restart 
httpd not running, trying to start
no listening sockets available, shutting down
Unable to open logs
Action 'restart' failed.
The Apache error log may have more information.
我已使用以下命令扫描端口80:

nmap -sU -p 80 [hostname]


它说那些端口上没有运行任何东西。我不知道发生了什么,我最近做的唯一一件事就是编辑一些vhost.conf文件。并且error.log文件没有显示最近的任何内容。有什么帮助吗?

检查您的apache错误日志,它将显示可能存在的问题。可能是apache的多个部分在尝试80等等。首先要检查日志文件


检查端口是否已经运行其他端口80服务是一个好主意。

如果其他任何人有此问题,我会按照建议完全重新安装,即:


磁盘空间用完了吗?您是否尝试过收听其他端口,如8080?您的配置文件是什么样子的?没有磁盘空间不足。不同端口失败,相同消息。我将在上面发布一些.conf文件。如果您谈论的是/var/log/apache2/error.log,它已经有2个小时没有显示新消息了。我肯定80上没有运行任何东西,而且即使我切换到8080,问题仍然存在。应该有启动错误-是的。另外,/var/log/messages可能会有一些有用的信息等。我假设您只是尝试了简单的停止,然后启动,而不是重新启动。尽管“/conf/extras folder”中也包含许多可能导致问题的有趣原因。奇怪的是你没有收到任何消息。您尝试以root用户身份启动?尝试停止/启动并重新启动,没有骰子。我是以root开始的,是的,尽管当我尝试sudo时问题仍然存在。。。它也是。
nmap -p 80 [hostname]
aptitude purge apache2.2-common apache2
aptitude install apache2