• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
潸然泪下的杯具
博客园    首页    新随笔    联系   管理    订阅  订阅
redis启动

redis启动

find / -name redis-server(查找redis目录)

1.no config file specified, using the default config. In order to specify a config file

./redis-server redis.conf(conf文件路径)

2.Connection refused 拒绝访问

修改redis.conf配置文件,使用vim命令打开,找到bind那行注释,wq保存退出,重启redis-server。

 

 

3.DENIED Redis is running in protected mode (保护模式)----见上图

将redis配置文件protected-mode保护模式改为no(默认为yes)

4.Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool

启动redis服务

./redis-server redis.conf

posted on 2021-03-10 17:33  潸然泪下的杯具  阅读(127)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3