端口号被占用快速解决

例如:

"The Tomcat connector configured to listen on port 8018 failed to start. 
The port may already be in use or the connector may be misconfigured."

以管理员身份运行CMD。
查找所有:netstat -ano
查找端口:netstat -aon|findstr "xxxx"

C:\WINDOWS\system32>netstat -aon|findstr "8018"
  TCP         0.0.0.0:8018           0.0.0.0:0              LISTENING       4680

PID杀死端口进程:taskkill -pid xxxx -f

C:\WINDOWS\system32>taskkill -pid 4680 -f
成功:PID 4680的过程已被终止。

猜你喜欢

转载自blog.csdn.net/KAIZ_LEARN/article/details/107759271