在centos下查看端口占用情况输入命令
lsof -i:8080(自己的端口号)
出现"-bash: lsof: command not found"
解决方案:
yum install lsof
安装即可