First enter the Redis-cli console
#./redis-cli
enter auth + space + the password you just set
successfully
Redis remote connection
1.1 Remote connection
[list]
$ Redis-cli -h 127.0.0.1 -p 6379
Remote service stopped:
$ redis-cli -h 172.168.10.254 -p6379 shutdown
redis-cli -h 127.0.0.1 -p 6379 -a 123456
In addition to specifying a password through the -a parameter when logging in, you can also log in without specifying a password, but authenticate before performing the operation
[/list]
http://blog.csdn.net/vtopqx/article/details/46833215