Centos7中apache2/httpd绑定多个端口失败

阅读 47

2022-08-18

配置文件http-ssl.conf

Listen 443
Listen 7443
Listen 8081

然后启动报错

systemctl start httpd.service

Centos7中apache2/httpd绑定多个端口失败_apache

 

 

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

检测配置文件是否正确

httpd -t

Centos7中apache2/httpd绑定多个端口失败_配置文件_02

 

 使用命令查看启动失败详情:

systemctl status httpd.service -l

Centos7中apache2/httpd绑定多个端口失败_启动报错_03

 

 解决方法关闭 selinux

setenforce 0 
#修改配置
vim /etc/selinux/config
SELINUX=enforcing改为SELINUX=disabled

 

参考:

​​https://blog.51cto.com/bguncle/957315​​

精彩评论(0)

0 0 举报