jps | grep "Main" | awk '{print $1}' | xargs kill 将其中的 Main 替换为需要kill的进程名即可。 相关文章: 2022-12-23 2021-05-15 2022-12-23 2022-12-23 2021-11-25 2022-12-23