brew install redis

检查是否安装成功

brew安装与启动redis

启动

brew services start redis

➜  Demo brew services start redis
==> Successfully started `redis` (label: homebrew.mxcl.redis)

# 检测已启动的项目
➜  Demo brew services list
Name          Status  User  Plist
elasticsearch error   thoth /Users/thoth/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
filebeat      stopped
kafka         stopped
kibana        stopped
logstash      stopped
mysql@5.7     started thoth /Users/thoth/Library/LaunchAgents/homebrew.mxcl.mysql@5.7.plist
nginx         stopped
packetbeat    stopped
redis         started thoth /Users/thoth/Library/LaunchAgents/homebrew.mxcl.redis.plist
zookeeper     stopped

检查是否启动成功

➜  ~ redis-cli -h 127.0.0.1
127.0.0.1:6379> ping
PONG

参考

https://blog.csdn.net/spoliedchild/article/details/90076504

相关文章:

  • 2022-12-23
  • 2021-12-21
  • 2021-12-04
  • 2021-06-29
  • 2021-12-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-12
  • 2021-09-20
  • 2022-01-12
相关资源
相似解决方案