mac下安装redis
brew install redis
设置开机启动
brew services start redis
手动启动
redis-server /usr/local/etc/redis.conf
启动客户端
redis-cli
brew install redis
设置开机启动
brew services start redis
手动启动
redis-server /usr/local/etc/redis.conf
启动客户端
redis-cli