Redis

远程字典服务器  REmote DIctionary Server

1.下载安装

直接查看redis中国官网即可。
`http://redis.cn/download.html`
brew install redis
/usr/local/Cellar/redis/3.2.9/bin
/usr/local/etc/redis.conf

2.运行

./redis-server /usr/local/etc/redis.conf
./redis-cli [-p] [6379]  运行客户端

ps -ef|grep redis  查看运行
kill -quit 13410   关闭
1.使后台运行
直接找到GENERAL部分   将daemonize no改为yes
# By default Redis does not run as a daemon. Use 'yes' if you need it.
# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
daemonize yes
2.查看后台运行
    ps -ef|grep redis
    ./redis-cli [-p] [6379]  运行客户端

3.查看数据库

默认是16个数据库,类似于数组小标从0开始.

4.其他基本操作

点击查看 KEYS 查看到所有的key keys n *匹配全部 keys n? ?匹配一个

results matching ""

    No results matching ""