[XX@XXX]$ ps -ef | grep redis
XX 8047 1 0 10:06 ? 00:00:03 redis-server *:6379
XX 9983 9802 0 11:20 pts/1 00:00:00 grep --color=auto redis
[XX@XXX]$ redis-cli
127.0.0.1:6379> AUTH XXX
OK
127.0.0.1:6379> CONFIG GET requirepass
1) "requirepass"
2) "XXX"
127.0.0.1:6379> ping
PONG
127.0.0.1:6379>
原文:https://www.cnblogs.com/leihongnu/p/14803665.html