命令行查看端口

1.列出所有端口的情况

  netstat -ano

2.查看端口为8080的占用情况 ,最后一位为PID

  netstat -ano|findstr 8080

a.查看是哪个进程或者程序占用了8080端口,即PID为11348的进程,结果是:java.exe

  tasklist|findstr "11348"

 

b.

扫描二维码关注公众号,回复: 1042233 查看本文章

3.强制关闭PID为6820的进程

  taskkill /pid 11348  /F

4.查看帮助

猜你喜欢

转载自www.cnblogs.com/cralor/p/9093548.html
今日推荐