无法以root身份启动httpd

即使以root身份运行httpd,我也会得到这个错误:

Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]:100 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:100 no listening sockets available, shutting down Unable to open logs 

我尝试更改端口,甚至是不被iptables阻止的端口,我仍然得到相同的错误(根据“netstat -an”)。 重新安装和同样的交易。 我正在运行CentOS 5.3 x86_64。

Nginx运行在我的80端口上。我只是想运行Apache作为后端,所以我可以在线查看AWStats。 这个或上述问题的解决scheme将是非常棒的。

这听起来像是一个SELinux阻碍的情况。 您应该能够通过运行“/ usr / sbin / getenforce”来检查它是否正在运行。 如果它说“强制”,你可以尝试通过运行“sudo / usr / sbin / setforce 0”来禁用它,然后重新启动apache,看看你是否得到相同的结果。