shell redis状态
来源:互联网 发布:大数据商业银行 编辑:程序博客网 时间:2024/06/03 23:41
restart_redis.sh如下:
#! /bin/bash
r = ‘ps aux|grep redis |awk '{print $1}'|grep root'
if [-z $r]
then
sudo service redis restart
fi
awk是文本
===================================华丽分割线===========================================
定时器调用:
*/5 * * * * /bin/sh /mydata/sh/restart_redis.sh
php调用:
exec("/usr/bin/sudo /bin/sh /mydata/sh/restart_redis.sh");
阅读全文
0 0
- shell redis状态
- redis 状态
- Redis-Shell
- Redis Shell
- linux-shell脚本,监控nginx,tomcat,redis,php-cli,磁盘状态
- redis 信息和状态
- redis查看状态
- shell 文件状态测试
- shell测试文件状态
- Shell -退出状态
- shell退出状态
- Shell监控服务器状态
- redis shell 命令
- Shell-Check Redis
- redis shell启动脚本
- 查看redis状态和redis常用命令
- redis状态与性能监控
- redis状态与性能监控
- 文件下载
- Icheck
- Android中去掉TitleBar、设置应用全屏
- ADB记录总结学习的三两事
- 动态三维数组的创建
- shell redis状态
- mipi 调试经验
- 运行 MyBatis Generator 后的任务
- kafka与Spring的集成
- Oracle学习笔记day09——游标
- [Leetcode] 397. Integer Replacement 解题报告
- (文摘)SQLMail的原理及实际应用
- CAD文件转jpg图片好转么
- gridview加载条目动画