Install Redis Open Source on Linux

How to install Redis Open Source using Snap

Redis Open Source

Install Redis Open Source on Ubuntu Linux using Snap

Note:
If you only need the Redis CLI (redis-cli) and not the full Redis Open Source distribution, see Install redis-cli.

To install Redis via snap, run the following commands:

sudo apt update
sudo apt install redis-tools # this will install `redis-cli`
sudo snap install redis

Redis will start automatically after installation and also at boot time.

Connect to Redis

Once Redis is running, you can test it by running redis-cli:

redis-cli

Test the connection with the ping command:

127.0.0.1:6379> PING
PONG
RATE THIS PAGE
Back to top ↑