我重新启动了我的服务器,现在httpd不会重新启动。
我尝试使用命令“服务httpd开始”,但得到这个回应
[root@mail ~]# sudo service httpd start Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]:8888 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:8888 no listening sockets available, shutting down Unable to open logs
我以root身份login。 我的ect目录下没有目录叫conf来查找conf / httpd.conf,我的ect目录中也没有init.d / apache2。 我看着我的ect / init.d文件,但没有看到有关端口。
我有很多东西需要学习,但同时我需要重新启动并运行。 谢谢你的帮助。
你很可能已经启用了SELinux并且处于“执行”模式。
你可以用下面的方法禁用它
sudo setenforce 0
然后你可以像平常一样启动apache
sudo service httpd start
如果要永久禁用SELinux,请编辑/etc/selinux/config并将SELINUX=enforcing改为SELINUX=disabled
如果你想继续使用SELinux,你需要通过添加对端口的访问来修改你的configuration,
sudo semanage port -a -t http_port_t -p tcp 8888