Redis-6.0.6的一些问题
在配置文件里配置了之后,重启后好像并未生效。
设置了密码
结果还是没有密码就登陆进来了
查看了config get *
发现是已经在配置文件里的。
结果还是要用
config set requirepass "123456"
去设置密码。才有效。并且重启redis后就失效了。(大概率是我的配置文件上还是存在问题,后期,排查更新)
还有一个报错,就是我在set键值时报没有权限写入
后面这个问题已经解决了。
# Since Redis 2.6 by default replicas are read-only.
#
# Note: read only replicas are not designed to be exposed to untrusted clients
# on the internet. It's just a protection layer against misuse of the instance.
# Still a read only replica exports by default all the administrative commands
# such as CONFIG, DEBUG, and so forth. To a limited extent you can improve
# security of read only replicas using 'rename-command' to shadow all the
# administrative / dangerous commands.
replica-read-only no