Installing Redis on Mac OS X

redis logo

This post explains how you can install Redis on your Mac OS X system. The instructions will stay pretty much same for any Linux/Unix based system.

If you have Homebrew:

If you don’t have Homebrew:

Grab the latest copy of Redis from this link. At the time of this writing the latest stable release is 3.2.6. Follow the instructions below now.

  • Download Redis. I downloaded redis to my Downloads folder on Mac.
  • First execute the make test command to make sure Redis can complete a clean install on your computer.
  • If no problems were found, continue by executing make on your terminal
$ cd ~/Downloads/redis-2.4.14
$ make test
$ make
  • Next, move these 2 directories into your /usr/bin directory. You’ll need to do this as the sudo user.
$ sudo mv src/redis-server /usr/bin
$ sudo mv src/redis-cli /usr/bin
  • Now, make a hidden redis directory in your home folder and add a config file called redis.conf into this folder. You can consult the Redis Documentation on what options/parameters you can configure using this conf file.
$ mkdir ~/.redis
$ touch ~/.redis/redis.conf
  • Start up the redis server using:
$ redis-server
[30974] 29 May 21:27:49 * Server started, Redis version 2.4.14
[30974] 29 May 21:27:49 * The server is now ready to accept connections on port 6379
[30974] 29 May 21:27:49 – 0 clients connected (0 slaves), 922304 bytes in use

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s