赞
踩
- #!/bin/bash
- ids=`ps -ef | grep "monitor.jar" | grep -v "grep" | awk '{print $2}'`
- echo "当前服务id:" $ids
- for id in $ids
- do
- kill -9 $id
- echo "killed $id"
- done
- nohup java -jar -Dfile.encoding=utf-8 monitor.jar > nohup.out 2>&1 &
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。