ITPub博客

首页 > 云计算 > 虚拟化 > linux系统下Apache服务启动时80端口报错

linux系统下Apache服务启动时80端口报错

虚拟化 作者:126云 时间:2021-01-31 12:40:00 0 删除 编辑

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

image.png

错误代码:

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.


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69957453/viewspace-2754829/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
文章来自网络,如有侵害,请私信

注册时间:2019-12-14

  • 博文量
    344
  • 访问量
    257066