摘要: #!/bin/sh . /etc/init.d/functions #是否完成备份结果,0为完成备份,1为未完成备份 result=`redis-cli -h 127.0.0.1 -a 123456 --no-auth-warning info persistence | grep 'rdb_bgs 阅读全文
posted @ 2020-10-22 19:15 yt丶独自 阅读(458) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh #install redis . /etc/init.d/functions #安装依赖包 yum -y -q install gcc jemalloc-devel make wget || { action "安装依赖包失败,请检查环境" false ;exit; } #下载源 阅读全文
posted @ 2020-10-22 19:01 yt丶独自 阅读(110) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh . /etc/init.d/functions #创建mysql用户 id mysql &> /dev/null || { useradd -r -d /data/mysql -s /sbin/nologin mysql ; action "创建用户成功"; } #安装依赖包 y 阅读全文
posted @ 2020-10-22 18:59 yt丶独自 阅读(298) 评论(0) 推荐(0) 编辑