端口占用异常解决
启动服务时发现下列异常:
***************************
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
在控制台输入:
netstat -aon|findstr "8081" //你想要查看的端口号
记住后面的代号:12236
输入taskkill /pid 12236 /f
这个样子就杀死了正在进行的端口
服务启动成功
同款cmd窗口请看主页文章