Apache 無法啟動 ubuntu

Apache 無法啟動 ubuntu

當我跑步時service apache2 start 我得到回應

 * Starting web server apache2                                                  /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: 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.
                                                                         [fail]

運行 `netstat -tulpn| 時正規表示式:80

我得到回應。

(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp6       0      0 :::80                   :::*                    LISTEN     

我該如何解決這個問題?

答案1

您應該以管理員權限執行此命令。稱呼sudo service apache2 start

如果這沒有幫助。su成功登入後執行您的命令。這次應該可以了。

相關內容