shell脚本重启 #!/bin/shpid=$(ps -efww|grep -w “cloud”|grep “java”|grep -v “grep”|awk ‘{print $2}’)echo $pidfor id in $piddokill -9 $id;echo “killed $id”doneecho “restart”java -Dfile.encoding=utf-8 -jar xxx... 技术 2023-09-16 35 点赞 0 评论 53 浏览