在开发过程中,启动服务的时候最经常就是碰到端口被占用的情况.下面介绍如何查看端口被那个程序占用了.
eg: 要查看端口 8800 被什么程序占用了.
1. 运行 cmd
2. 输入 netstat -aon|findstr "8800" 查看占用端口的进程id
[img]http://dl.iteye.com/upload/attachment/0067/0868/ff288975-90b6-36f3-bffe-851836192ab2.jpg[/img]
3. 运行tasklist|findstr "9204" 根据进程id查看对应程序
[img]http://dl.iteye.com/upload/attachment/0067/0872/55aaedef-bfe7-3a64-9966-d4c6bc73ec18.jpg[/img]
4. 知道后怎么处理看你自己了
eg: 要查看端口 8800 被什么程序占用了.
1. 运行 cmd
2. 输入 netstat -aon|findstr "8800" 查看占用端口的进程id
[img]http://dl.iteye.com/upload/attachment/0067/0868/ff288975-90b6-36f3-bffe-851836192ab2.jpg[/img]
3. 运行tasklist|findstr "9204" 根据进程id查看对应程序
[img]http://dl.iteye.com/upload/attachment/0067/0872/55aaedef-bfe7-3a64-9966-d4c6bc73ec18.jpg[/img]
4. 知道后怎么处理看你自己了