1. Windows
1)tasklist -v | find "programName"
得到进程PID
2)netstat -nao | find “PID”
2. Linux
1) ps -ef | grep ""programName"
2) netstat -anp | grep “PID”