标签:
=启动多个redis实例=
#redis-server/usr/local/redis/redis6370.conf
#redis-server/usr/local/redis/redis6371.conf
=户端登陆连接==
用法:redis-cli [OPTIONS] [cmd [arg [arg ...]]]
-h <主机ip>,默认是127.0.0.1
-p <端口>,默认是6379
-a <密码>,如果redis加锁,需要传递密
redis-cli -h 127.0.0.1 -p 6371
127.0.0.1:6371> set b 3
=设置密码==
config set requirepass 123456
=关闭==
pkill redis-server
标签:
原文地址:http://www.cnblogs.com/jking10/p/4508895.html