【Redis】【1】一些报错处理

1,redis用127.0.0.1访问正常,但是用ip访问,就会报错 (error) DENIED Redis is running in protected mode because protected mode is enabled

解决方法,修改redis.conf文件

1.bind 0.0.0.0                  设置允许访问的ip

2.requirepass 123456   设置访问密码

3.protected-mode no     关闭保护模式

然后指定默认默认配置文件启动   ./redis-server redis.conf

参考博客:

redis DENIED Redis is running in protected mode because protected mode is enabled.... - 王慧永 - CSDN博客
https://blog.csdn.net/u011072139/article/details/64922917

redis 报错 Redis protected-mode 配置文件没有真正启动 - Agly_Charlie的博客 - CSDN博客
https://blog.csdn.net/Agly_Clarlie/article/details/52251746

posted @ 2019-05-02 18:50  花生喂龙  阅读(217)  评论(0编辑  收藏  举报