Web server failed to start. Port 8080 was already in use.(Windows10下根据端口,杀死进程)

项目问题(Windows10下根据端口,杀死进程)

Description:

Web server failed to start. Port 9090 was already in use.
Web server failed to start. Port 8080 was already in use.(Windows10下根据端口,杀死进程)_第1张图片

①首先 键盘输入(win+r),接着在运行对话框中输入“cmd”,进入命令窗口

②输入netstat -ano|findstr "端口号",回车即可查看到端口号对应的进程 我这里测试端口号是9090

netstat -ano|findstr "9090"

Web server failed to start. Port 8080 was already in use.(Windows10下根据端口,杀死进程)_第2张图片
③接着输入tasklist|findstr "44656",回车

tasklist|findstr "44656"

在这里插入图片描述
④杀死进程 taskkill -PID <进程号> -F

taskkill -PID 44656 -F

我先测试的时候没有-F被提示要-F
在这里插入图片描述
这里-F代表强制执行命令
Web server failed to start. Port 8080 was already in use.(Windows10下根据端口,杀死进程)_第3张图片

你就可以看到你的项目可以正常打开了


Hope that we can grow and progress as soon as possible and become an excellent Java Development Engineer.

你可能感兴趣的:(Java项目实战问题)