[英]Apache restart error on ubuntu 12.04
我试图从在Ubuntu 12.04安装phpMyAdmin 这里
安装apache2后,我运行以下命令
sudo /etc/init.d/apache2 restart
而且我遇到以下错误,无论如何如何解决此错误并在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.
当我从浏览器尝试localhost/phpmyadmin
,显示Welcome to nginx!
您有一个可能在Apache试图绑定到的端口上运行的Nginx Web服务器。 我不知道谁在使用此Nginx Web服务器,但是您可以使用以下方法停止它:
sudo service nginx stop
然后尝试再次启动Apache。
要查看谁在使用哪个端口:
sudo netstat -nptul
您正在运行一个监听端口80的Nginx Web服务器,因此Apache无法绑定到该端口。 您必须先使用以下方法关闭nginx
sudo /etc/init.d/nginx stop
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.