linux查看端口占用

netstat   -anp   |   grep  8080   可以看到占用端口的进程id      pid

ps -aux | grep pid   可以查看进程的具体情况

kill -9 pid  可以杀死此进程

原文地址:https://www.cnblogs.com/ahudyan-forever/p/5754196.html