redis
port:6379
命令
redis-cli -h
-h host
-p port
-a 连接的password

连上数据库以后
info
查看信息

其中数据库信息

数据库名字为0
所以切进数据库
selece 0
keys有4个
想看所有keys的数据
keys *

获取数据
get key

存放数据
set key value
redis
port:6379
redis-cli -h
-h host
-p port
-a 连接的password
info
查看信息
selece 0
keys *
get key
set key value
本文标题:Redeemer(redis基础)
本文链接:https://www.haomeiwen.com/subject/ttzljdtx.html
网友评论