SELinux is preventing httpd from name_bind access on the tcp_socket port

SELinux is preventing httpd from name_bind access on the tcp_socket port 的解決方法。

Apache 遇到以下類似錯誤時:

SELinux is preventing /usr/sbin/httpd from name_bind access on the tcp_socket port 4040

可以通過以下命令解決:

# semanage port -a -t httpd_port_t -p tcp [port]
  • [port] 改為對應的端口即可,如 4040