简体   繁体   English

Ubuntu 12.04上的Apache重新启动错误

[英]Apache restart error on ubuntu 12.04

I am trying to install phpmyadmin on ubuntu 12.04 from here 我试图从在Ubuntu 12.04安装phpMyAdmin 这里

After i installed apache2 i run the below command 安装apache2后,我运行以下命令

sudo /etc/init.d/apache2 restart

and i got the below errors, anyway how to solve this error and install phpmyadmin on ubuntu 而且我遇到以下错误,无论如何如何解决此错误并在ubuntu上安装phpmyadmin

 * 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.

And when i tried localhost/phpmyadmin from browser its showing Welcome to nginx! 当我从浏览器尝试localhost/phpmyadmin ,显示Welcome to nginx!

You have an Nginx webserver running on probably the same port Apache is trying to bind to. 您有一个可能在Apache试图绑定到的端口上运行的Nginx Web服务器。 I don't know who is using this Nginx webserver, but you can stop it with: 我不知道谁在使用此Nginx Web服务器,但是您可以使用以下方法停止它:

sudo service nginx stop

Then try starting Apache again. 然后尝试再次启动Apache。

To see who is using which ports: 要查看谁在使用哪个端口:

sudo netstat -nptul

You have a nginx webserver running that listens to port 80, so Apache can't bind to that port. 您正在运行一个监听端口80的Nginx Web服务器,因此Apache无法绑定到该端口。 You have to shut nginx down first using something like 您必须先使用以下方法关闭nginx

sudo /etc/init.d/nginx stop

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM