标签:conf set password 验证 run class config pre nbsp
## config get requirepass命令查看是否设置了密码验证 127.0.0.1:6379> CONFIG get requirepass 1) "requirepass" 2) "" ## 设置密码验证
## config set requirepass "password" 127.0.0.1:6379> CONFIG set requirepass "runoob" OK 127.0.0.1:6379> CONFIG get requirepass 1) "requirepass" 2) "runoob" ## auth 命令验证密码
## auth "password" 127.0.0.1:6379> AUTH "runoob" OK 127.0.0.1:6379> SET mykey "Test value" OK 127.0.0.1:6379> GET mykey "Test value"
标签:conf set password 验证 run class config pre nbsp
原文地址:https://www.cnblogs.com/konglingxi/p/9454572.html