1.netstat -anp|findstr "port" 得到进程id 2.tasklist|findstr "pid" 得到是进程名 转载于:https://www.cnblogs.com/devilwind/p/7130296.html