赞
踩
[root@test /]# firewall-cmd --query-port=3306/tcp
- # 注意:开放端口后要重启防火墙生效
- [root@test /]# firewall-cmd --zone=public --add-port=3306/tcp --permanent
[root@test /]# systemctl restart firewalld
[root@test /]# firewall-cmd --remove-port=3306/tcp --permanent
[root@test /]# systemctl status firewalld
[root@test /]# systemctl stop firewalld
[root@test /]# systemctl start firewalld
[root@test /]# firewall-cmd --zone=public --add-port=40000-45000/tcp --permanent
[root@test /]# firewall-cmd --zone=public --list-ports
[root@test /]# netstat -lntp
[root@test /]# netstat -lnp|grep 3306
[root@test /]# netstat -tulpn
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。