centos7开端口并设置selinux

时间:2018-04-11 11:40:16   收藏:0   阅读:886
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

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!