栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

JAVA无法访问Redis服务端redis.clients.jedis.exceptions.JedisDataException: DENIED Redis is running in protec

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

JAVA无法访问Redis服务端redis.clients.jedis.exceptions.JedisDataException: DENIED Redis is running in protec

通过idea代码,访问linux系统的redis服务端失败。。。。跪求大佬解决

window和linux系统的防火墙已经关闭

 

修改了redis.conf配置文件中bind已经调成0.0.0.0

 修改了redis.conf配置文件中的protect-mode已经调成no

 redis服务器已经开启

 

还是报错:

redis.clients.jedis.exceptions.JedisDataException: 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.
 

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1024404.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号