Address Already In Use: JVM_Bind 端口被占用的几个解决办法

Address Already In Use: JVM_Bind 端口被占用的几个解决办法

运行Tomcat时若出现Address already in use: JVM_Bind 端口被占用,一般使用下面几个办法可以解决:

假设端口为8080

1.启动cmd, 执行命令netstat -ano|findstr 8080 ,会查询出占用端口号的进程号,这时候执行命令

taskkill -f -pid 进程号 杀死进程,然后重启Tomcat即可解决

2.若方法一查询不到进程,(假设使用IDEA)则在Run- Edit Configurations中删掉添加的Tomcat,之后再重新配置Tomcat及其artifacts等,可解决

3.若还是不行,Ctrl Shift Delete 打开资源管理器,关掉Idea和Java jvm的进程,重新打开idea 尝试运行

4.关机重启@TOC

相关推荐
凯酱1 小时前
MyBatis 中 OGNL 的使用:从入门到实战
java·tomcat·mybatis
Linux-lucky11 小时前
28-Linux学习之旅之Maven与Nexus制品库
linux·运维·学习·nginx·tomcat·maven
典典分享指南16 小时前
Python-docx 批量生成带图营销文:文字图片分离与排版定位
servlet·intellij-idea·java-consul·java-activemq
deng120421 小时前
Maven多模块父子工程与IDEA导入异常排查记录
人工智能·maven·intellij-idea
卓怡学长2 天前
w180springboot基于Java的悠扬乐器管理
java·spring boot·mysql·spring·maven·intellij-idea
卓怡学长2 天前
w181springboot机场乘客服务系统
java·数据库·spring boot·spring·intellij-idea
卓怡学长2 天前
w192基于springboot教务管理系统
java·数据库·spring boot·spring·maven·intellij-idea
EXI-小洲3 天前
MacOS 环境下 IntelliJ IDEA 的 Maven 配置指南
macos·maven·intellij-idea
竹枝溪3 天前
Tomcat与Servlet全套小白教程
java·servlet·tomcat·cookie·filter·session·listener
choumou_M3 天前
SpringBoot_2:MyBatis-Generator插件使用教程
spring boot·tomcat·mybatis