1、windows 下面获得pid netstat -aontasklist | more 2、windows下面获取 java进程pid wmic process where caption="java.exe" get processid,caption,commandline /value 来源:oschina链接:https://my.oschina.net/u/4346770/blog/4287203 标签 java task_list