[英]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.