see opend port
lsof -i:PORT
netstat -tunlp | grep 端口号
netstat -ntlp //查看当前所有tcp端口 netstat -ntulp | grep 80 //查看所有80端口使用情况 netstat -ntulp | grep 3306 //查看所有3306端口使用情况
kill -9 PID
linux端口占用
原文:https://www.cnblogs.com/connie313/p/12152737.html