我在 Ubuntu 12.10 上安装了 Apache 2。当我尝试使用 sudo /etc/init.d/apache2 start
启动服务时,我收到以下消息。
*Starting web server apache2
(98)Address already in use: make_sock: could not bind to address 127.0.0.1:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information. [fail]
ps -ef | grep apache
) 时没有正在运行。然后看一下sudo /etc/init.d/apache2 restart
的输出是什么?验证一下在/etc/apache2/sites-enabled/
目录中是否有你的网站,并检查其中的文件。 - Rinzwind