![图片[1]- 脚本检测Linux MySQL运行状态异常自动重启](https://www.dh139.cn/wp-content/uploads/2025/02/1-10.png)
![图片[2]- 脚本检测Linux MySQL运行状态异常自动重启](https://www.dh139.cn/wp-content/uploads/2025/02/2-7.png)
#花猪源码
#https://www.dh139.cn
pgrep -x mysqld &> /dev/null
if [ $? -ne 0 ];then
bash /www/server/panel/script/rememory.sh
/etc/init.d/mysqld start
fi
![图片[3]- 脚本检测Linux MySQL运行状态异常自动重启](https://www.dh139.cn/wp-content/uploads/2025/02/1-11.png)
#花猪源码
#https://www.dh139.cn
pgrep -x mysqld &> /dev/null
if [ $? -ne 0 ];then
/etc/init.d/mysql start
fi
![图片[4]- 脚本检测Linux MySQL运行状态异常自动重启](https://www.dh139.cn/wp-content/uploads/2025/02/1-12-1024x93.png)
感谢您的来访,获取更多精彩文章请收藏本站。

暂无评论内容