172173.com

Redis 登陆密码设置

1.redis-6379.conf

1
requirepass "xxxxxxxx"

2.在线配置密码

1
config set requirepass "xxxxxxxx"

3.客户端密码登陆

redis-cli

1
2
3
4
5
[[email protected] conf]# /usr/local/redis/bin/redis-cli -h 127.0.0.1 -p 6379
127.0.0.1:6379> info
NOAUTH Authentication required.
127.0.0.1:6379> auth xxxxxxxx
OK

telnet

1
2
telnet 127.0.0.1 6379
auth xxxxxxxx

 评论