问题
启动项目一直报错,后面看到 端口占用报错 10001 端口被占用
但是就奇怪了 我天天启动这个服务,为什么能出现端口被占用的错误
***************************
APPLICATION FAILED TO START
***************************
Description:
Web server failed to start. Port 10001 was already in use.
Action:
Identify and stop the process that's listening on port 10001 or configure this application to listen on another port.
解决
1.netstat -ano #查看所有的端口
2.通过命令查找某一特定端口,在命令窗口中输入命令中输入
netstat -ano | findstr “端口号”
然后回车就可以看到这个端口被哪个应用占用
(这里面 17124 就是进程id)
3.查看到对应的进程id之后,就可以通过进程id查找对应的进程名称,使用命令
tasklist | findstr "进程id号"
4. 可选 杀死本地进程 taskkill /pid "进程id" -f
我这里已经干掉了 所以是没找到
至此 问题解决,项目成功启动。
不得不吐槽一句 作为技术人 电脑上还有360 不得不反思自己了!