tomcat linux kill进程

  • ​​命令​​

命令

kill -9 $(ps aux | grep tomcat_boss | grep -v grep | awk '{print $2}')

其中: tomcat_boss为需要停进程的tomcat名称