tomcat端口占用解决方案

Error was Port already in use :40001;nested exception is :java.net.BindException: Address already in use : JVM_Bind;

出现这种情况:

cmd  -->  输入 : netstat  -aon|findstr "40001"

然后看有那些TCP在使用该端口;找到使用该端口的进程id;然后再输入

tasklist|findstr "进程id"  点击回车;

看看有哪些服务或程序在启动着,关闭即可;

原文地址:https://www.cnblogs.com/zy20160117/p/8831288.html