Mysticbinary

只有通过概念的劳作才能获得真实的思想

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


这篇文章对你有帮助吗?作为一名程序工程师,在评论区留下你的困惑或你的见解,大家一起来交流吧!
微信公众号: Mysticbinary
Github:https://github.com/Mysticbinary
本文版权归作者所有,欢迎转载,但未经作者同意请保留此段声明,请在文章页面明显位置给出原文链接
声明:本文章仅限于讨论网络安全技术,请勿用作任何非法用途,否则后果自负,本人和博客园不承担任何责任!

posted on 2021-03-25 11:43  Mysticbinary  阅读(830)  评论(0编辑  收藏  举报

导航