1、netstat -tunlp,查看已使用的端口
2、netstat -tunlp | grep 8080,查询指定端口使用情况
3、netstat命令无法使用需要安装net-tools
yum install net-tools -y