【BUG】Web server failed to start. Port 9080 was already in use.

背景

最近开发时,发现启动不了项目了,报Web server failed to start. Port 9080 was already in use.错误,这个错误其实告诉我们电脑的端口被占用了,只要停掉占用这个端口的进程就行了

打开CMD

netstat -ano

【BUG】Web server failed to start. Port 9080 was already in use._第1张图片

找到占用端口的进程

【BUG】Web server failed to start. Port 9080 was already in use._第2张图片

taskkill /F /pid 15260

【BUG】Web server failed to start. Port 9080 was already in use._第3张图片

启动项目

【BUG】Web server failed to start. Port 9080 was already in use._第4张图片

至此

你可能感兴趣的:(SpringBoot,bug,服务器,网络)