怎么查看端口占用情况

1. 开始--运行--cmd 进入命令提示符 输入netstat -ano 即可看到所有连接的PID
2.netstat -aon|findstr "9050"查看占用端口9050的进程号
或者netstat -apn|grep "80"(linux)
3.tasklist|findstr "2016"查看进程号为2016的进程
或者ps -aux | grep "2016"(linux)

猜你喜欢

转载自hntjzln.iteye.com/blog/1724783