查错误日志, 发现apache启动时有提示:[notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0

原来是SELinux的安全策略导致的。

临时方案:setenforce 0

永久方案:修改/etc/sysconfig/selinux:SELINUX=disabled 重启生效!

 

相关文章:

  • 2021-05-21
  • 2021-09-03
  • 2022-01-19
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
猜你喜欢
  • 2021-08-08
  • 2022-01-07
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
相关资源
相似解决方案