brew install redis
redis-server /usr/local/etc/redis.conf
redis-cli shutdown
Ctrl+c
$ redis-cli ping 返回pong代表已经启动
redis-cli 该命令会连接本地的Redis服务