linux - Apache2 服务器无法启动

标签 linux apache ubuntu

我是服务器和 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。我只是不太了解端口或这个错误。我已经搜索了 Internet,但我不了解解决方案或无法实现。

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

最佳答案

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

关于linux - Apache2 服务器无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37283143/

相关文章:

javascript - WebRTC 流式传输不适用于某些浏览器组合

c++ - 在 32 位环境中链接到 32 位共享目标文件会产生 ELFCLASS64 错误

python - 我应该将哪个 Python intrpetor 放入 .py header 中?

java - Wicket ListView ajax 删除总是删除列表中的最后一个元素

Java - com.cloudera.sqoop 与 org.apache.sqoop 哪个要从 sqoop jar 导入?

python - 从 python 调用休眠命令

Linux/POSIX : Why doesn't fork() fork *all* threads

c - SIGALRM、间隔计时器和 sleep() 问题

r - 无法在运行 R 的 ubuntu 上获取最新版本的 GDAL

ubuntu - 什么是 fix-it-all.sh 以及如何运行它?