如果没有lsof命令需要先安装 yum install lsof ,如果安装提示 Error: Nothing to do 则需要先更新源 yum update -y
查看80049端口所关联的进程
lsof -i:80049 linux 18943 root 3u IPv4 67834601 0t0 TCP :80049 (LISTEN) linux 18943 root 4u IPv4 67834602 0t0 TCP iZuf6e7st8va67989mtcg2Z:80049->223.70.23.10:51465 (CLOSE_WAIT) linux 18943 root 5u IPv4 67834673 0t0 TCP iZuf6e7st8va67989mtcg2Z:80049->223.70.23.10:58313 (ESTABLISHED)
列出所有占用端口
netstat -ntl