帮助中心 >  技术知识库 >  网站相关 >  网站运营 >  linux系统下Apache服务启动时报错情况处理

linux系统下Apache服务启动时报错情况处理

2015-11-02 14:06:22 3357

当我们在安装好Apache重启后,在终端启动Apache服务时候出现下面报错:

错误代码:

httpd:httpd:Could not reliably determine the servers fully qualified domain name, using localhost.localdomain 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                         [失败]

错误原因一:可能存在httpd.conf的配置文件中,找到“ServerName localhost:80”这里,把这段前面的#号删除。

(#号在配置文件中表示注释的意思)

错误原因二:用户权限的问题,查看当前是否是root用户,因为小于1024的端口只能是root占用。

切换至root用户。或者更改端口如8000.



提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: