赞
踩
firewall-cmd --query-port=[端口]/tcp
示例:
firewall-cmd --list-ports
示例:
firewall-cmd --permanent --add-port=[端口]/tcp
firewall-cmd --reload
示例:
firewall-cmd --permanent --remove-port=[端口]/tcp
firewall-cmd --reload
示例:
systemctl status firewalld.service
systemctl start firewalld.service
systemctl stop firewalld.service
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。