Mac 使用 redis
使用 homebrew 安装 redis:
brew install redis安装后使用 brew list redis 查看安装位置
配置文件位于 /opt/homebrew/etc 目录
启动命令:
brew services start redis或者:
redis-server /opt/homebrew/etc/redis.conf连接 redis:
redis-cli -h 127.0.0.1 -p 6379关闭 redis:
redis-cli shutdown