How to install Redis

You can download the latest version ofRedisFrom

Redis can be installed on any server. In this case, we installed it locally for testing.

On macOS, installation using Homebrew is simpler. run:

brew install redis

Then run

brew services start redis

Let Redis start automatically, and restart when the computer reboots.

You can also start it manually with the following command:

redis-server /usr/local/etc/redis.conf

On Linux Ubuntu, you need to run

sudo apt-get install redis-server

Redis will automatically start and run.

Once started, Redis will listenport 6379.

On the local server, no password is required to make it run. However, when Redis can access the Internet, please make sure you areredis.confThe location of the configuration file depends on your operating system.

More redis tutorials: