Permission denied: AH00072: make_sock: could not bind to address [::]:9090

Permission denied: AH00072: make_sock: could not bind to address [::]:9090

修改了 httpd 的端口(9090) 重启httpd报错,然后
journalctl -xe 查看错误,得到下面的错。

Permission denied: AH00072: make_sock: could not bind to address [::]:9090

1.自己理解字面意思理解可能是本机这个端口已经被占用了,所查看一下端口。
但是没有查到
在这里插入图片描述
2.怀疑是SELINUX 没关,一看真的是
一开机,SELINUX默认是开启的时候,默认会给所有的软件上锁,不能进行更改。
在这里插入图片描述
把这个改为disabled
执行这个 setenforce 0

在这里插入图片描述

-- The start-up result is done.
May 08 15:54:05 web1.magedu.org sshd[8435]: pam_unix(sshd:session): session opened for user root by (uid=0)
May 08 15:54:05 web1.magedu.org systemd[1]: Starting Session 46 of user root.
-- Subject: Unit session-46.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-46.scope has begun starting up.
May 08 15:55:07 web1.magedu.org polkitd[520]: Registered Authentication Agent for unix-process:8462:11499590 (system bus name :1.197 [/
May 08 15:55:07 web1.magedu.org systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has begun starting up.
May 08 15:55:08 web1.magedu.org httpd[8468]: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:9090
May 08 15:55:08 web1.magedu.org httpd[8468]: (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:9090
May 08 15:55:08 web1.magedu.org httpd[8468]: no listening sockets available, shutting down
May 08 15:55:08 web1.magedu.org httpd[8468]: AH00015: Unable to open logs
May 08 15:55:08 web1.magedu.org systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 08 15:55:08 web1.magedu.org kill[8470]: kill: cannot find process ""
May 08 15:55:08 web1.magedu.org systemd[1]: httpd.service: control process exited, code=exited status=1
May 08 15:55:08 web1.magedu.org systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has failed.
-- 
-- The result is failed.

在这里插入图片描述

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值