获取到tomcat进程,循环杀掉进程,然后grep确认
for i in `ps -ef|grep "retail"|grep -v grep|awk '{print $2}'`;
do kill -9 $i;
done;
ps -ef|grep retail
批量启动程序,grep确认程序是否启动成功,top查看资源占用
/usr/local/retail-http/bin/startup.sh
/usr/local/retail-srv/bin/startup.sh
/usr/local/retail-prom/bin/startup.sh
ps -ef|grep retail
top