【问题标题】:Apache2 Server Won't StartApache2 服务器无法启动
【发布时间】:2016-05-17 17:50:53
【问题描述】:

我一般是服务器和 Apache 的新手。我正在尝试建立一个 apache 2.4 服务器来学习 php 和 mysql。我按照 apache 文档进行设置以及此处的指南 http://php.net/manual/en/install.unix.apache2.php

现在当我运行“service apache2 start”时,我收到了这个错误:

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
 * 
 * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems

从这里我做了'desktop@desktop-pc:~$ sudo netstat -tulpn | grep:80' 结果如下:

[sudo] password for desktop: 
tcp6       0      0 :::80                   :::*                    LISTEN      19493/httpd     
desktop@desktop-pc:~$ 

在我看来,这似乎没有使用端口 80。我只是不太了解端口或这个错误。我在网上搜遍了,要么不明白解决方案,要么无法实现。

感谢您提供的任何帮助。如果需要更多信息,我将尽我所能提供。我也在 Ubuntu 12.04 上。 谢谢。

【问题讨论】:

  • 使用sudo service apache2 status
  • 格式化的代码和消息。

标签: linux apache ubuntu


【解决方案1】:

首先尝试在其他端口上启动 Apache。如果它不起作用,您的防病毒程序可能会阻止 Apache 服务。

【讨论】:

  • 谢谢。这不是问题,但我能够解决这个问题。导致我遇到更多问题。
猜你喜欢
  • 2016-04-13
  • 2014-08-14
  • 2017-08-18
  • 2019-08-20
  • 2019-03-28
  • 2021-11-21
  • 2017-12-20
  • 2019-07-20
相关资源
最近更新 更多