1.找到對應的進程
通過端口查找
lsof -i:端口號
netstat -tunlp | grep 端口

lsof -i:9500

netstat -tunlp | grep 9500
2.根據對應的PID殺掉進程
kill PID
原文出處:https://www.jianshu.com/p/a5f8f8e37a95
通過端口查找
lsof -i:端口號
netstat -tunlp | grep 端口
kill PID
原文出處:https://www.jianshu.com/p/a5f8f8e37a95
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。