ps -ef | grep tomcat | grep -v grep | sed 's/ [ ]*/:/g' | cut -d: -f3 | kill -9
./startup
本文提供了一个通过命令行终止特定Tomcat进程的示例脚本。该脚本利用了ps、grep等命令来查找并杀死指定的Tomcat进程。适用于需要快速管理Tomcat应用的场景。
ps -ef | grep tomcat | grep -v grep | sed 's/ [ ]*/:/g' | cut -d: -f3 | kill -9
./startup
13万+
1375

被折叠的 条评论
为什么被折叠?