摘要:
#!/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 阅读全文
摘要:
#!/bin/sh #install redis . /etc/init.d/functions #安装依赖包 yum -y -q install gcc jemalloc-devel make wget || { action "安装依赖包失败,请检查环境" false ;exit; } #下载源 阅读全文
摘要:
#!/bin/sh . /etc/init.d/functions #创建mysql用户 id mysql &> /dev/null || { useradd -r -d /data/mysql -s /sbin/nologin mysql ; action "创建用户成功"; } #安装依赖包 y 阅读全文