https://gist.github.com/tonypujals/9631143
1. 使用 Homebrew 安裝 redis-server
>> brew install redis
2. 設定開幾自動啟動
>> ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
3. 使用 launchctl 掛入 開幾自動啟動(load = start, unload = stop)
>> sudo launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
>> sudo launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
PS. 有需要的話修改redis.conf 的位置 (homebrew.mxcl.redis.plist)
/usr/local/redis/redis.conf
沒有留言:
張貼留言