One - One Code All

Blog Content

redis带密码的客户端连接方法

Nosql   2013-11-16 17:16:40

客户端连接方法:

redis-cli -h localhost -p 6380

提供host为localhost,端口为6380

 

带密码的客户端连接方法一:

redis-cli -h localhost -p 6380 monitor -a 123456

监控host为localhost,端口为6380

-a 为连接密码

 

密码验证方法二:

在命令行输入:auth 123456   #123456是密码



上一篇:几种redis数据导出导入方式
下一篇:Redis 哨兵模式 设置密码

The minute you think of giving up, think of the reason why you held on so long.