安得情怀似旧时 2019-12-10
1. 查看正在监听的端口
netstat -ntlp
2. 查看防火墙的状态
firewall-cmd –state
3.如果处于关闭状态(not running),输入命令:
systemctl start firewalld.service
4.开启8080端口,输入命令:
firewall-cmd --zone=public --add-port=8080/tcp --permanent
5.输入命令重新载入配置;
firewall-cmd --reload
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME. java 1113 admin 252u IPv6 26643775 TCP 192.168.0.1:1