背景
通过 Homebrew , 在本地机器上安装&配置 Redis
安装 Redis
Redis 相关配置
电脑开机时, 启动 Redis
| 1
 | $ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
 | 
通过 “launchctl” 启动 Redis
| 1
 | $ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
 | 
以指定配置文件启动 Redis
| 1
 | $ redis-server /usr/local/etc/redis.conf
 | 
停止当前加载的 Agent
| 1
 | $ launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
 | 
默认配置文件的位置
| 1
 | cat /usr/local/etc/redis.conf
 | 
卸载 Redis 和相关配置
| 1
2
 | $ brew uninstall redis
$ rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
 | 
获取 Redis 相关信息
校验 Redis 是否运行
如果正常运行, 响应 PONG