Mac 安装Redis
时间:2021-06-07 16:41:34
收藏:0
阅读:14
安装
brew install redis
% brew install redis
==> Downloading https://mirrors.cloud.tencent.com/homebrew-bottles/bottles/redis-6.2.4.arm64_big_sur
######################################################################## 100.0%
==> Pouring redis-6.2.4.arm64_big_sur.bottle.tar.gz
==> Caveats
To have launchd start redis now and restart at login:
brew services start redis
Or, if you don‘t want/need a background service you can just run:
redis-server /opt/homebrew/etc/redis.conf
==> Summary
/opt/homebrew/Cellar/redis/6.2.4: 13 files, 2MB
启动服务
% brew services start redis
==> Successfully started `redis` (label: homebrew.mxcl.redis)
测试连接
% redis-cli
127.0.0.1:6379> set name zhang
OK
127.0.0.1:6379> get name
"zhang"
原文:https://www.cnblogs.com/jiqing9006/p/14858629.html
评论(0)