1. 通过pid查看端口占用 netstat -anp | grep 8080 2. 通过pid查看进程详情 ps -ef | grep 8080 3. 显示所有进程信息 ps -A 显示所有进程信息,连同命令行 ps -ef 4. netstat -tunlp netstat -tunlp|grep 80 5. lsof -i lsof -i 参考: https://www.haoba.cc/archives/linux-duan-kou-shi-fou-yun-xing-duan-kou-jian-ting.html