xywuyiba7 发表于 2019-2-17 07:29:40

centos7开端口并设置selinux

if selinux is enforcing and we want to add port 943 to haproxy
  · semanage port -l | grep http_port_t
· semanage port -a -t http_port_t -p tcp 943
· semanage -l | grep 943
· firewall-cmd --permanent --add-port=943/tcp
· firewall-cmd --reload
· firewall-cmd --list-all

[*]firewall-cmd --list-all-zones



页: [1]
查看完整版本: centos7开端口并设置selinux