Web server failed to start. Port 8080 was already in use.之解决方法

问题:

        Web server failed to start. Port 8080 was already in use,这句错误描述意思是当前程序的端口号8080被占用了,需要将占用该端口的程序停止掉才行;错误如图所示:

Web server failed to start. Port 8080 was already in use.之解决方法_第1张图片

解决方法:

        按住win+r,输入cmd,打开命令行窗口,找到占用我们8080端口的应用进程,使用命令直接杀死该进程,验证成功,此时,启动程序,项目成功启动:

netstat -ano | findstr 8080
taskkill -PID 19140 -F

Web server failed to start. Port 8080 was already in use.之解决方法_第2张图片

Web server failed to start. Port 8080 was already in use.之解决方法_第3张图片 

你可能感兴趣的:(Java之路,服务器,java,nginx,redis)