安装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

 

posted on 2020-03-20 13:52  jeffh  阅读(7319)  评论(0)    收藏  举报