How to Install Redis


Redis is a NoSQL database technology which has gained a lot of traction within the developer community - and for good reason. Redis has many applications as an in-memory database with great applications in analytics, caching, and messaging. Installing it can easily be done from the command line or terminal.

How to install Redis on Mac

To install redis on a mac, use homebrew:

shell Copy
brew install redis

If you need to install homebrew, you can learn about that here. You can then start up redis using:

shell Copy
brew services start redis

You can then make redis startup when you book your computer by using the following command:

shell Copy
cp /usr/local/opt/redis/*.plist ~/Library/LaunchAgents

How to install Redis on Linux

To install redis on linux, run the following command:

shell Copy
sudo apt install redis-server

How to install Redis on Windows

If you want to install redis on windows, there is an archived and no longer maintained port which Microsoft have created. Since this is no longer supported, it is advisable you do not use it, and instead look at Microsoft's suggested alternative, Memurai.

Last Updated Sunday, 31 October 2021

Subscribe to Newsletter

Subscribe to stay up to date with our latest web development and software engineering posts via email. You can opt out at any time.

Not a valid email