Mac 用Brew 安装Redis

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

其他

Mac PHP配置Redis扩展

文章作者: ABin
本文链接:
版权声明: 本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 ABin!