1.找到對應的進程
通過端口查找
lsof -i:端口號
netstat -tunlp | grep 端口
lsof -i:9500
netstat -tunlp | grep 9500
2.根據對應的PID殺掉進程
kill PID
原文出處:https://www.jianshu.com/p/a5f8f8e37a95
