2013-08-07 162 views
0

我试图从here的Apache重新启动错误12.04

在Ubuntu 12.04安装phpMyAdmin后,我安装的Apache2我运行下面的命令

sudo /etc/init.d/apache2 restart 

,我得到了下面的错误,反正怎么解决这个错误,并在Ubuntu

* Restarting web server apache2                             apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName 
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName 
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 
no listening sockets available, shutting down 
Unable to open logs 
Action 'start' failed. 
The Apache error log may have more information. 

安装phpMyAdmin当我从浏览器试图localhost/phpmyadmin其显示Welcome to nginx!

回答

1

您对Nginx上运行的Web服务器可能是同一端口Apache是​​试图绑定到。 我不知道是谁在使用这个Nginx的网络服务器,但你可以阻止它:

sudo service nginx stop 

然后尝试重新启动Apache。

要查看谁在使用哪些端口:

sudo netstat -nptul 
+0

ķ试图与上述相同,仍然再次运行Apache服务器后,它显示了同样的错误 –

+0

不netstat命令告诉你,如果仍然有一些运行在端口80上? – RickyA

+0

当我运行netstat 80“tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1573/nginx:worker” –

0

你有一个监听端口80的nginx网络服务器,所以Apache无法绑定到该端口。你必须先关闭nginx的下使用类似

sudo /etc/init.d/nginx stop