问题描述
你是否遇到过这个问题呢?无论是初学者、还是中高级开发者,你都会遇到这个问题。我们就来总结一下。
Web server failed to start.Port 8080 was already in use.
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.
解决方案
解决方案1:
方案1是最简单的,我们直接在配置文件中直接修改程序的端口号就可以了。比较简单,此处不多过多的演示。
解决方案2:
- 打开我们的命令行窗口
- 找到占用我们8080端口的应用进程
- 使用命令直接杀死该进程
- 最后验证一下是否成功
- 此时,启动程序,成功启动