端口占用解决:Web server failed to start. Port 8081 was already in use.

端口占用异常解决

启动服务时发现下列异常:

***************************
APPLICATION FAILED TO START
***************************

Description:

Web server failed to start. Port 8081 was already in use.

Action:

Identify and stop the process that's listening on port 8081 or configure this application to listen on another port.


导致服务启动失败
翻译过来是:

Web server failed to start.  Port 8081 was already in use.
//Web服务器启动失败。 端口8081已经被占用。  
Identify and stop the process that's listening on port 8081 or configure this application to listen on another port
//识别并停止正在监听端口8081的进程,或者将此应用程序配置为监听另一个端口。  

这个时候打开按住Windows+R输入cmd
端口占用解决:Web server failed to start. Port 8081 was already in use._第1张图片
在控制台输入:

netstat -aon|findstr "8081" //你想要查看的端口号

端口占用解决:Web server failed to start. Port 8081 was already in use._第2张图片

记住后面的代号:12236

输入taskkill /pid 12236 /f
端口占用解决:Web server failed to start. Port 8081 was already in use._第3张图片
这个样子就杀死了正在进行的端口
服务启动成功
端口占用解决:Web server failed to start. Port 8081 was already in use._第4张图片
同款cmd窗口请看主页文章

你可能感兴趣的:(报错解决,cmd)