linux查看端口占用 netstat -anp | grep 8080 可以看到占用端口的进程id pid ps -aux | grep pid 可以查看进程的具体情况 kill -9 pid 可以杀死此进程