netstat-->查看网络端口与进程号 netstat -anp|grep 8080 直接查看指定端口的进程pid #结果为 tcp 0 0 :::8080 :::* LISTEN 9019/java 则9019为8080这个端口的tomcat进程的pid,
然后kill这个进程:kill -9 9019
[root@dev008 dev008]# netstat -anp|grep 8080tcp 0 0 :::8080 :::* LISTEN 9019/java [root@dev008 dev008]# kill -9 9019
转载于:https://www.cnblogs.com/shouwangzhe-/p/3937107.html