宝塔添加计划Shell任务,设置为每10分钟执行一次。

pgrep -x mysqld &> /dev/null
if [ $? -ne 0 ];then
bash /www/server/panel/script/rememory.sh
/etc/init.d/mysqld start
fi
最后修改:2021 年 05 月 05 日
如果觉得我的文章对你有用,请随意赞赏