Centos7中apache2/httpd綁定多個端口失敗


配置文件http-ssl.conf

Listen 443
Listen 7443
Listen 8081

然后啟動報錯

systemctl start httpd.service

 

 

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

 

 使用命令查看啟動失敗詳情:

systemctl status httpd.service -l

 

 解決方法關閉 selinux

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

 

參考來源:

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

https://blog.csdn.net/lzk25419/article/details/98172543


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM