报错信息如下:
Description:
Web server failed to start. Port 8080 was already in use.
Action:
Identify and stop the process that's listening on port 8080 or configure this application
to listen on another port.
报错原因:
是因为Tomcat的端口被占用了,你需要修改一下端口号,或者把正在运行的端口号进程杀死.
解决方案1
- win+R —> 输入cmd —> 回车
- 输入命令 —>
netstat -ano | findstr "8080"
查找进程PID(进程序列号)
- 找到被占用的进程号14916,输入命令 —>
taskkill -pid 进程号 -f
解决方案2
使用任务管理器关闭服务 Ctrl+Alt+Del
—> 打开任务管理器