安装redis客户端
yum install redis
连接
redis-cli -h host -p port -a password
host:redis服务器host
port:redis服务端口 默认端口6379
password:redis服务密码(无密码不需要-a参数了)
更换数据库
select index
Redis命令参考网站:
http://doc.redisfans.com/index.html
yum install redis
连接
redis-cli -h host -p port -a password
host:redis服务器host
port:redis服务端口 默认端口6379
password:redis服务密码(无密码不需要-a参数了)
更换数据库
select index
Redis命令参考网站:
http://doc.redisfans.com/index.html
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。