redis shutdown (error) ERR Errors trying to SHUTDOWN. Check logs.
来源:互联网 发布:apk优化 编辑:程序博客网 时间:2024/05/21 06:01
1.打开配置文件redis.conf 我的在/usr/local/redis 下
2.修改log路径(此步奏是为了查看使用 shutdown 指令 出错在哪)
sudo vi redis.conf
找到 logfile ""
修改为: logfile /usr/local/redis/redis_log/redis_log.log
如果/usr/local/redis 下面没有相应的文件夹和文件对应创建且 赋予读写权限
使用指令: sudo chmod 777 redis_log.log
3.将dir /. 修改为dir/usr/local/redis/redis_dbfile/
# The working directory.
#
# The DB will be written inside this directory, with the filename specified
# above using the 'dbfilename' configuration directive.
#
# The Append Only File will also be created inside this directory.
#
# Note that you must specify a directory here, not a file name.
dir /usr/local/redis/redis_dbfile/
4.若使用shutdown 还是显示(error) ERR Errors trying to SHUTDOWN. Check logs. 则可以查看redis_log.log文件
我出现 文件夹没有足够权限 和 打开文件过多的情况 只要对应 赋予权限 kill 掉文件夹进程即可
解决后即可以使用 shutdown 指令显示 not connected
- redis shutdown (error) ERR Errors trying to SHUTDOWN. Check logs.
- redis 报(error) ERR Errors trying to SHUTDOWN. Check logs
- redis关闭服务失败报错:(error) ERR Errors trying to SHUTDOWN. Check logs.
- mac redis安装过程中 关闭服务redis报错 redis (error) ERR Errors trying to SHUTDOWN. Check logs.
- shutdown
- Shutdown
- Shutdown
- ShutDown
- shutdown
- shutdown
- shutdown
- shutdown
- shutdown
- shutdown
- shutdown
- Shutdown
- shutdown
- shutdown
- Spring的AOP
- 快速搭建springboot框架以及整合ssm+shiro+安装Rabbitmq和Erlang、Mysql下载与配置
- linux初学之ftp服务
- xml入门、解析、创建及规范
- ssh设置字段默认值
- redis shutdown (error) ERR Errors trying to SHUTDOWN. Check logs.
- 171108-函数作用域和存储特性学习【连续第十六天】
- 程序员的自我修养--可执行文件的装载与进程
- 剑指offer 二维数组的查找
- 位操作算法基本操作1
- 让你的 WordPress 网站更安全的5 个方法
- java String[] args理解
- zipkin+elasticsearch全链路跟踪(springcloud)
- jenkins+selenium grid实现分布式自动化测试