查看端口号
netstat -anp |grep 端口号
查看已使用端口状况
netstat -nultp(此处不用加端口号)
netstat -anp |grep 82查看82端口的使用状况进程
查找被占用的端口:
netstat -tln
netstat -tln | grep 8080
查看端口属于哪一个程序
lsof -i :8080
杀掉占用端口的进程:
kill -9 进程ID
===================
ps -ef | grep xxx
kill xxx
grep