【发布时间】:2013-06-09 09:38:45
【问题描述】:
我正在尝试在 centos 6 上启动 httpd 服务器。它会引发以下错误:
[root@machine ~]# service httpd start
Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]:88
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:88
no listening sockets available, shutting down
Unable to open logs
[FAILED]
我还检查了端口 88,它不是在使用。 我也检查了semanage,但没有帮助。
我们将不胜感激。
【问题讨论】:
-
将端口添加到 SELinux 对我有用,所以感谢您提供的链接。
-
编辑 conf 以将 Apache 使用的端口更改为大于 1024 的数字,例如 8080。我在 Windows 中使用 Ubuntu v20 并进行如下编辑:sudo vi /etc/apache2/ports.conf