idea运行Tomcat出现 Address localhost:8080 is already in useAddress localhost:8080 is already in use

使用IDEA运行 tomcat时出现 Address localhost:8080 is already in use,就很奇怪,我明明只有这一个程序呀,怎么还会被占用。后来想想可能就是被其他进程占用了吧

1.查看所有的机器端口的pid

idea运行Tomcat出现 Address localhost:8080 is already in useAddress localhost:8080 is already in use

 

 2.找到正在使用8080的程序端口是13716

3. tasklist 查找所有的程序的端口,但这样会有很多,不方便人肉眼查找

4.使用管道|过滤

tasklist |findstr "13716"

  idea运行Tomcat出现 Address localhost:8080 is already in useAddress localhost:8080 is already in use

 

 5.原来是java.exe这个程序,关掉就好了
6.打开任务管理器,找到该程序,右键点击结束任务

idea运行Tomcat出现 Address localhost:8080 is already in useAddress localhost:8080 is already in use

 

上一篇:centos MySQL无法启动 [Errno 98] Address already in use


下一篇:Git 报错:fatal: destination path ‘.‘ already exists and is not an empty directory.