Linux: netstat -nat | grep -i “端口号” | wc -l windows: netstat -ant | find “端口号” >d:\a.txt 或 netstat -aon | findstr “端口号”