我无法启动使用 apt-get 安装的 apache2。我在 2 个单独的 Ubuntu 12.10 安装上遇到了同样的错误,一个在我的台式机上,另一个在 VirtualBox 中运行:
michal@michaltest:~$ sudo service apache2 start
* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
[fail]
Run Code Online (Sandbox Code Playgroud)
lsof 说:
michal@michaltest:/var/log/apache2$ sudo lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ubuntu-ge 2074 michal 11u IPv4 23978 …Run Code Online (Sandbox Code Playgroud)