连接widows云服务器上的redis时连接不上【解决】

网友投稿 1208 2022-10-31

连接widows云服务器上的redis时连接不上【解决】

连接widows云服务器上的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 passwor

等一系列报错后…我终于找到错误。首先,把网上的各种步骤走一遍。1.服务器上配置文件中注释build 127.0.0.12.服务器配置文件将protected-mode属性设置no…等等项目中配置文件的主机等配置好,timeout根据网上标准写,3.2.1以后6000。最终解决方法是一定要用redis-server redis.windows.conf这个命令,即在redis目录下打开cmd窗口输入redis-server redis.windows.conf,双击打开不能远程连接!

以上情况是在windows server服务器上安装redis。在公司局域网访问redis的配置。

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:ThinkPHP3.2 ——基于PHP5的简单快速的面向对象的PHP框架
下一篇:Chainer: 一个用于深度学习的神经网络灵活框架
相关文章

 发表评论

暂时没有评论,来抢沙发吧~