Windows 进程管理
1、问题描述
-
遇到的问题:4000端口被占用(福昕
PDF
占用4000
端口号)问题描述:启动微服务出现如下报错
Description: The Tomcat connector configured to listen on port 4000 failed to start. The port may already be in use or the connector may be misconfigured. Action: Verify the connector's configuration, identify and stop any process that's listening on port 4000, or configure this application to listen on another port.
2、解决办法
- 查询端口的pid查询
netstat -ano|findstr "4000"
- 关闭对应
pid
:-F
强制关闭(以管理员身份运行CMD
)
taskkill -F -PID 4772
taskkill -F -PID 1848