本文主要是介绍redis保护模式的报错,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1.首先得保证redis实在gcc环境下运行的
2.如果发现命令行中只能打印出大写在符号,那么长安【A】就好,或者shift+[A]试试
3.mini安装Linux发现连不了网,要在配置文件中启动网关,并且设置自动分配IP地址,如果手动配置IP地址的话开门,可能还是连不上
4.java连接Redis出现错误,
--------(错误原因:1>Linux防火墙默认是开启的 2>Redis默认是保护模式(绑定到127.0.0.1))
解决方法:
关闭防火墙同时关闭Redis的保护模式
按照java的报错信息来修改:
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 publ
这篇关于redis保护模式的报错的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!