IDEA启动Tomcat报错:Address localhost:1099 is already in use

报错信息IDEA启动Tomcat报错:Address localhost:1099 is already in use_第1张图片
解决方法
方法一
打开任务管理器-->进程--> 关闭所有"java.exe"的进程即可.

IDEA启动Tomcat报错:Address localhost:1099 is already in use_第2张图片

方法二
  • 打开"cmd"
    IDEA启动Tomcat报错:Address localhost:1099 is already in use_第3张图片
  • 通过端口找到PID
    输入netstat -ano | find “1099”,得到下列内容,看到最后一列是9692,就是PID,
  • 通过PID找到进程
    输入:tasklist | find “9692”(双引号里面的是PID)
    IDEA启动Tomcat报错:Address localhost:1099 is already in use_第4张图片
  • 打开任务管理器–>进程–>关闭"PID"为9692的进程即可
    IDEA启动Tomcat报错:Address localhost:1099 is already in use_第5张图片IDEA启动Tomcat报错:Address localhost:1099 is already in use_第6张图片
  • 重新用IDEA启动Tomcat成功
    IDEA启动Tomcat报错:Address localhost:1099 is already in use_第7张图片

你可能感兴趣的:(活捉bug)