brew安裝與啟動redis



安裝

brew install 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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM