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.
版权声明:本文为qq_35078688原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。