Created
July 21, 2016 06:21
-
-
Save geraldyeo/e33e184b13e45c1aec1d2d1534930dad to your computer and use it in GitHub Desktop.
Install and config Redis on Mac OS X via Homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Launch Redis on computer starts. | |
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents | |
# Start Redis server via “launchctl”. | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist | |
# Start Redis server using configuration file. | |
redis-server /usr/local/etc/redis.conf | |
# Stop Redis on autostart on computer start. | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist | |
# Location of Redis configuration file. | |
/usr/local/etc/redis.conf | |
# Uninstall Redis and its files. | |
brew uninstall redis | |
rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist | |
# Get Redis package information. | |
brew info redis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment