selinux 阻塞了連接埠 8332。但是我必須使用什麼連接埠類型來進行 rpc 連接?這是我收到的訊息:
SELinux is preventing /usr/sbin/php-fpm from name_connect access on the tcp_socket port 8332.
***** Plugin connect_ports (85.9 confidence) suggests *********************
If you want to allow /usr/sbin/php-fpm to connect to network port 8332
Then you need to modify the port type.
Do
# semanage port -a -t PORT_TYPE -p tcp 8332
waarin PORT_TYPE een van de volgende is: dns_port_t, dnssec_port_t, http_port_t, kerberos_port_t, ocsp_port_t.
答案1
經過一番搜索我終於找到了答案。只需運行這個命令:
sudo setsebool -P httpd_can_network_connect 1