yum -y install policycoreutils-python
semanage port -l|grep http #查看http开放端口
semanage port -a -t http_port_t -p tcp 888 #增加这个非标准端口即可
getsebool -a | grep httpd
#setsebool httpd_can_network_connect 1
setsebool -P httpd_can_network_connect 1
yum -y install policycoreutils-python
semanage port -l|grep http #查看http开放端口
semanage port -a -t http_port_t -p tcp 888 #增加这个非标准端口即可
getsebool -a | grep httpd
#setsebool httpd_can_network_connect 1
setsebool -P httpd_can_network_connect 1