localhost:8080 is already in use

错误信息:

Port 8080 required by Tomcat v8.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

解决办法:

今天使用tomcat,进行web项目基础学习,运行web项目的时候会遇到 Error running Tomcat8: Address localhost:8080 is already in use 的错误,导致web项目无法运行。这明显是8080端口已经被占用,解决办法如下:

1.第一步,win+R打开window窗口,输入命令提示符号,执行命令:netstat -ano

 可见,占用8080端口的进程的PID是47676。

2.第二步,执行命令:tasklist

 从上图可以看出,占用端口的是javaw.exe

3.第三步,通过任务管理器,终止进程javaw.exe

通过快捷键ctrl+Alt+del或者ctrl+shift+esc打开任务管理器,找到javaw.exe,然后终止进程

4.重新启动tomcat,即可正常启动。

 

【文章转载自:https://blog.csdn.net/qq_43560721/article/details/88900528】

 

posted @ 2020-09-12 13:40  一只小菜菜鸟  阅读(918)  评论(1编辑  收藏  举报