1.可能原因:SELinux限制了Apache的端口设置
2.解决办法:

//安装semanage
yum provides /usr/sbin/semanage
yum -y install policycoreutils-python
//查看默认允许的端口
semanage port -l | grep -w http_port_t
// http_port_t  tcp  80, 81, 443, 488, 8008, 8009, 8443, 9000
//使用semanage添加apache侦听的端口
semanage port -a -t http_port_t -p tcp 8888
//启动apache
systemctl start httpd

 

相关文章:

  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2021-12-24
  • 2021-08-26
  • 2022-12-23
猜你喜欢
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2021-09-21
相关资源
相似解决方案