redis,

How to install Redis on Rocky Linux 8

Jul 17, 2021 · 1 min read · Post a comment
How to install Redis on Rocky Linux 8

If you are seeking a caching solution for your application then Redis will appear on the list. Here we will show you how to install Redis on Rocky Linux which is a replacement for CentOS.

Prerequisites

  • Rocky Linux 8
  • sudo access

Install Redis on Rocky Linux 8

Step 1. Update the system packages:

sudo dnf update

Step 2. To enable EPEL repository run:

sudo dnf install epel-release

Step 3. Install Redis:

sudo dnf install redis

Step 4. Enable and start the Redis service:

systemctl start redis
systemctl enable redis
systemctl status redis

Step 5. If you want to login to the Redis cli and ping the redis server run:

redis-cli

Output:

127.0.0.1:6379> ping
PONG
127.0.0.1:6379>

Uninstall Redis on Rocky Linux

Step 1. If you decide to remove redis on Rocky Linux execute:

sudo dnf remove redis

Conclusion

This tutorial shows you how to install the latest Redis version on Rocky Linux 8, and if you decide to use another caching tool instead of Redis there is a section on how to remove it depending on your needs. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on telegram.