查看端口状态&端口占用程序
#查找端口8080是否被占用 >netstat -ano | findstr "8080" TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 19860 #查看占用端口的程序 >tasklist | findstr "19860" tomcat7.exe 19860 Services 0 117,012 K
#查找端口8080是否被占用 >netstat -ano | findstr "8080" TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 19860 #查看占用端口的程序 >tasklist | findstr "19860" tomcat7.exe 19860 Services 0 117,012 K