brew install redis
安装完成后重启一下终端
启动
redis-server
后台启动
redis-server > /dev/null &
测试是否启动成功
#没有启动 (exit退出)
Could not connect to Redis at 127.0.0.1:6379: Connection refused
not connected>
#启动成功(exit退出)
127.0.0.1:6379>
关闭redis
killall -m redis-server
kill -9 PID
Redis配置文件路径
/usr/local/Cellar/redis/7.0.0/.bottle/etc/redis.conf
其他
评论区