1 |
yum install net-tools |
1 |
netstat -ant |
1 |
netstat -tunlp|grep 7002 |
1 |
netstat -lntp |
5.端口状态与打开方法:
1 2 3 4 |
firewall-cmd --query-port=7002/tcp 添加7002端口: firewall-cmd --add-port=7002/tcp --permanent |
1 2 |
移除7002端口: firewall-cmd --remove-port=7002/tcp --permanent |