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| grep :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,并在成功登录后运行您的命令。这次应该可以正常工作。

相关内容