当前位置:   article > 正文

Redis is running in protected mode because protected mode is enabled 问题处理

redis is running in protected mode because protected mode is enabled, no bin

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:

连接redis报错,根据错误信息,redis运行在受保护模式,需要修改redis配置 protected-mode
1.修改redis.conf文件,protected-mode no,修改完重启redis服务。如图所示:
在这里插入图片描述

2.redis命令行下作设置,查看设置:config get protected-mode
在这里插入图片描述
若出现以上情况,需要验证redis密码,输入 auth password(123456)
此时再进行设置:config set protected-mode no

根据实际情况选择对应方式修改;修改成功后重新连接redis服务,或者telnet命令测试redis端口。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/698366
推荐阅读
相关标签
  

闽ICP备14008679号