1.查看linux 下Tomcat 端口打开数量,使用命令:
netstat -an |grep "8888" |wc -l
查看状态为TIME_WAIT 的个数
netstat -an |grep "8888"|grep TIME_WAIT |wc -l
[img]http://dl2.iteye.com/upload/attachment/0126/5685/f17757ba-3edd-33da-8b8f-291d60847fe1.png[/img]
2.windows 下查看tomcat 端口号打开数量命令:
netstat -an| find "9999" /v /c
[img]http://dl2.iteye.com/upload/attachment/0126/5687/4243c809-4bce-3f47-a132-18f051caa632.png[/img]
netstat -an |grep "8888" |wc -l
查看状态为TIME_WAIT 的个数
netstat -an |grep "8888"|grep TIME_WAIT |wc -l
[img]http://dl2.iteye.com/upload/attachment/0126/5685/f17757ba-3edd-33da-8b8f-291d60847fe1.png[/img]
2.windows 下查看tomcat 端口号打开数量命令:
netstat -an| find "9999" /v /c
[img]http://dl2.iteye.com/upload/attachment/0126/5687/4243c809-4bce-3f47-a132-18f051caa632.png[/img]