标签:awk 命令 pen nbsp 查找 启动服务 gre grep int
1.查找进程id命令
ps -ef | grep -v grep|grep bdse-tour-service-1.0-jar-with-dependencies.jar | awk ‘{print $2}‘
2.杀掉进程
kill -9 `ps -ef | grep -v grep|grep bdse-tour-service-1.0-jar-with-dependencies.jar | awk ‘{print $2}‘`
3.启动服务
标签:awk 命令 pen nbsp 查找 启动服务 gre grep int
原文地址:http://www.cnblogs.com/liyanbin/p/6170070.html