查找被占用的端口:
netstat -tln
netstat -tln | grep 8080
查看端口屬於哪個程序
lsof -i :8080
殺掉占用端口的進程:
kill -9 進程ID
===================
ps -ef | grep xxx
kill xxx