错误信息:

DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients. In this mode connections are only accepted from the loopback interface. If you want to connect from external computers to Redis you may adopt one of the following solutions: 1) Just disable protected mode sending the command 'CONFIG SET protected-mode no' from the loopback interface by connecting to Redis from the same host the server is running, however MAKE SURE Redis is not publicly accessible from internet if you do so. Use CONFIG REWRITE to make this change permanent. 2) Alternatively you can just disable the protected mode by editing the Redis configuration file, and setting the protected mode option to 'no', and then restarting the server. 3) If you started the server manually just for testing, restart it with the '--protected-mode no' option. 4) Setup a bind address or an authentication password. NOTE: You only need to do one of the above things in order for the server to start accepting connections from the outside. no' from the loopback interface by connecting to Redis from the same host the server is running, however MAKE SURE Redis is not publicly accessible from internet if you do so. Use CONFIG REWRITE to make this change permanent. 2) Alternatively you can just disable the protected mode by editing the Redis configuration file, and setting the protected mode option to 'no', and then restarting the server. 3) If you started the server manually just for testing, restart it with the '--protected-mode no' option. 4) Setup a bind address or an authentication password. NOTE: You only need to do one of the above things in order for the server to start accepting connections from the outside.
1
翻译信息:
被拒绝的Redis在受保护模式下运行,因为启用了受保护模式,没有指定绑定地址,没有向客户端请求身份验证密码。在这种模式下,连接只接受环回接口。如果你想从外部计算机连接到复述,你可能采取的解决方案:1)只是禁用保护模式发送命令的配置设置保护模式没有从loopback接口连接到复述同一主机服务器正在运行,然而确保复述,不是公开从互联网访问如果你这样做。使用配置重写使此更改永久。2)或者,您可以通过编辑Redis配置文件,将protected模式选项设置为“no”,然后重新启动服务器,从而禁用受保护模式。3)如果您只是为了测试而手动启动服务器,请使用“——protected-mode no”选项重新启动它。设置绑定地址或身份验证密码。注意:为了让服务器开始接受来自外部的连接,您只需要执行上面的一项操作。通过从服务器运行的同一主机连接到Redis,可以在环回接口中设置“否”,但是如果这样做,请确保不能从internet公开访问Redis。使用配置重写使此更改永久。2)或者,您可以通过编辑Redis配置文件,将protected模式选项设置为“no”,然后重新启动服务器,从而禁用受保护模式。3)如果您只是为了测试而手动启动服务器,请使用“——protected-mode no”选项重新启动它。设置绑定地址或身份验证密码。注意:为了让服务器开始接受来自外部的连接,您只需要执行上面的一项操作。

解决方案:
打开redis的配置文件 redis.conf
修改配置3处
第一处

这一处本来是没有注释的,注释掉

第二处:

这里本来是yes 改成no

第三处:

这里本来是no 改成yes

然后重新启动redis ,启动redis的时候必须启动相应配置文件

./redis-server /usr/local/software/redis-4.0.14/etc/redis.conf

原文链接:https://blog.csdn.net/dbbbbbbbbb/article/details/88666301

redis链接不上,报保护模式相关推荐

  1. gin redis 链接不上_Redis通俗易懂丶 - 夜雨秋池

    兴趣是最好的老师! 欣赏狂神:在外面做自己喜欢的事情,就算吃不饱饭,不愿意打工! 之前的感悟:打工仔只是创业者的衍生物丶 NoSQL概述 架构师有一个套路:什么东西都加一个中间层 数据库解决方案 ca ...

  2. gin redis 链接不上_Redis 高并发问题,及解决方案!

    (一)redis技术的使用: redis真的是一个很好的技术,它可以很好的在一定程度上解决网站一瞬间的并发量,例如商品抢购秒杀等活动... redis之所以能解决高并发的原因是它可以直接访问内存,而以 ...

  3. gin redis 链接不上_内存优化,Redis是如何实现的!

    点击上方"小罗技术笔记",关注公众号 第一时间送达实用干货 各位朋友新年开工好,今年由于特殊情况好多小伙伴今天在家开启远程办公模式(一直很向往),不过在这真想吐槽一下现有的远程办公 ...

  4. gin redis 链接不上_自然的风味,GIN 在杯中

    在墨尔本 | 创造专属奢华体验 | | | GRAND HYATT MELBOURNE  电影<卡萨布兰卡>剧照 Of all the gin joints, in all the tow ...

  5. gin redis 链接不上_php + redis 高并发商品秒杀 完整业务模拟流程 实现方案

    关于商品秒杀 之前百度了很多关于商品秒杀的业务怎么做,网上的答案真的是五花八门,归纳一下就两种方式 队列或计数器 网上大部分都没有写具体的代码业务 我这里模拟一个业务小场景进行实践 商品:1 每日限量 ...

  6. redis之禁用保护模式以及修改监听IP

    今天在安装filebeat的时候,出现了关于redis报错的问题,所以来总结一下: 报错信息是: (error) DENIED Redis is running in protected mode b ...

  7. redis关闭保护模式

    apt-get install安装目录是包的维护者确定的,不是用户 系统安装软件一般: 文档一般在 /usr/share 可执行文件 /usr/bin 配置文件 /etc lib文件 /usr/lib ...

  8. Linux下的实模式和保护模式

    实模式:(即实地址访问模式)它是Intel公司80286及以后的x86(80386,80486和80586等)兼容处理器(CPU)的一种操作模式.实模式被特殊定义为20位地址内存可访问空间上,这就意味 ...

  9. 深入理解计算机系统-之-内存寻址(二)--存储保护机制(CPU实模式与保护模式)

    cpu的保护模式由来 分段机制 8086的诞生,标志着Intel 正式进入了x86时代,这是个多么具有纪念意义的日子:1978-6-8.同时,8086的诞生也是处理器内存寻址技术的第一次飞跃. 对于一 ...

最新文章

  1. Found option without preceding group in config file E:\mysql\mysql-5.7.23-winx64\my.ini at line 1!
  2. ue查找多个关键字_聊聊数据库GROUP BY关键字的那些事
  3. H3C交换机典型访问控制列表(ACL)配置实例
  4. [ios][swift]UIButton
  5. 卡通驱动项目ThreeDPoseTracker——模型驱动解析
  6. java context.write_Channel.write() 和 ChannelHandlerContext.write() 的区别
  7. 台式计算机听音乐,配置一台4000元的台式电脑,主要用于日常办公及上网查资料,听音乐,看电影及学习....
  8. JS前台页面验证文本框非空
  9. 【错误】【vscode】'#' not expected here
  10. PyTorch 1.0 中文文档:多进程包 - torch.multiprocessing
  11. Linux学习笔记---使用MfgTool工具烧写官方系统(一)
  12. mysql 判断大小_《fantasy系列》高性能mysql(一)
  13. Quartus 13.0安装教程
  14. 安装rarlinux及问题解决
  15. php laravel 分页,laravel 分页问题
  16. requests-BeautifulSoup爬取美女贴吧图片
  17. python面板数据模型_面板数据模型选择
  18. 内存spd规范_CL14真香,聊聊内存条时序到底是什么?
  19. 高通MSM8953点屏记录
  20. 浩瀚科技PDA移动开单|盘点机 数据采集器 条码扫描开单微POS软件 现场打印开单...

热门文章

  1. java兔子繁殖_兔子繁衍问题 (考虑死亡)
  2. 【阿里云高校计划】阿里云AI训练营_Day04_车辆检测系统
  3. 【Java基础】2020如何查看Java官方文档
  4. 自动微分(Auto differentiation)
  5. 黑客大神用什么杀毒? Windows 自带的就够, 只是加了亿点微小的强化
  6. CAD测量工具使用方法
  7. 「Adobe国际认证」关于Photoshop选择并遮住工作区,用户界面介绍
  8. 2020年11月-北京-今日头条面试题
  9. 祥云杯2020 Crypto wp
  10. 数学/数论专题-学习笔记:狄利克雷卷积