shell脚本监测进程并重启 本人实例: #!/bin/bash ps -ef | grep elastic | grep -v grep if [ $?/bin/bash ps -ef | grep mysqld | grep -v grep if [ $? Sabrina 2020-02-12 12:27:12