参考:http://blog.csdn.net/gtuu0123/article/details/6025520 http://blog.csdn.net/alivetime/article/details/8219728
jps -- Java Virtual Machine Process Status Tool 可以列出本机所有java进程的pid
jps [ options ] [ hostid ]
-q 仅输出VM标识符,不包括class name,jar name,arguments in main method |