利用Shell 脚本实时检测Linux MySQL运行状态异常自动重启

图片[1]- 脚本检测Linux MySQL运行状态异常自动重启
图片[2]- 脚本检测Linux MySQL运行状态异常自动重启

#花猪源码
#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
pgrep -x mysqld &> /dev/null
if [ $? -ne 0 ];then
	/etc/init.d/mysql start
fi
图片[4]- 脚本检测Linux MySQL运行状态异常自动重启
© 版权声明
评论 抢沙发

请登录后发表评论

    暂无评论内容