怎么解决tomcat占用8080端口问题

xiaoxiao2021-02-28  79

转 :https://jingyan.baidu.com/article/1612d5006c3cdae20e1eee04.html

相信很多朋友都遇到过这样的问题吧,tomcat死机了,重启eclipse之后,发现

     Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use.The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

是不是很多人教你重启电脑呢,下面教大家一个不用重启计算机 的方法。

在dos下,输入  netstat   -ano|findstr  8080 

说明:查看占用8080端口的进程

显示占用端口的进程

taskkill  /pid  6856  /f 

说明,运行windows自带taskkill命令,将上面显示的进程号,结束掉。

转载请注明原文地址: https://www.6miu.com/read-42312.html

最新回复(0)