一、用brew install redis
二、启动
redis-cli
弹出Could not connect to Redis at 127.0.0.1:6379: Connection refused
三、redis-server
首先cd到redis.conf文件所在的文件夹,redis.conf文件在usr/local/etc目录下。
cd /usr/local/etc
sudo redis-server ./redis.conf
OK
redis-cli
弹出Could not connect to Redis at 127.0.0.1:6379: Connection refused
首先cd到redis.conf文件所在的文件夹,redis.conf文件在usr/local/etc目录下。
cd /usr/local/etc
sudo redis-server ./redis.conf
OK
转载于:https://www.cnblogs.com/liubosong/p/10334207.html