Created
February 17, 2020 04:34
-
-
Save hassanjamal/fe3e8b8aedd8b85b78f244799e8df1f5 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
By using Homebrew, you greatly reduce the cost of setting up and configuring the development environment on Mac OS X. | |
Let’s install Redis for the good. | |
```$ brew install redis``` | |
After installation, you will see some notification about some caveats on configuring. Just leave it and continue to following some tasks on this article. | |
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``` | |
Test if Redis server is running. | |
```$ redis-cli ping``` | |
If it replies “PONG”, then it’s good to go! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment