Install Redis Server on Rocky Linux 8 / AlmaLinux 8

Redis is a fast, in-memory data structure store that can be used as a database, cache, and message broker. In this tutorial, we will show you how to install Redis on AlmaLinux 8 and switch it from supervised no to supervised systemd.

Step 1: Update your system

Before installing Redis, it's recommended that you update your system's packages to their latest versions. You can do this by running the following command:

dnf update -y

Step 2: Install Redis

To install Redis on AlmaLinux 8, you can use the DNF package manager. Use the following command to install Redis:

dnf install redis -y

Step 3: Configure Redis

By default, Redis is configured to run as a daemon process with supervised no. To switch Redis to supervised systemd, you need to modify the Redis configuration file. You can open the configuration file with a text editor using the following command:

nano /etc/redis.conf

Find the line that starts with supervised no and change it to supervised systemd, like this:

supervised systemd

Save the changes to the configuration file and exit the text editor.

Step 4: Start Redis

After configuring Redis, you can start the Redis service using the following command:

systemctl start redis

To check the status of the Redis service, you can run the following command:

systemctl status redis

If the service is running, the output should show an active (running) status.

Step 5: Enable Redis to start automatically

If you want Redis to start automatically at system boot, you can enable the Redis service using the following command:

systemctl enable redis

This will ensure that Redis starts automatically whenever your system boots up.

  • 6 Users Found This Useful
Was this answer helpful?

Related Articles

Domain names are not showing in WHM

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...

How to Start/Stop or Restart Apache server

Apache is the HTTP server that is freely available over the internet. It is a kind of software or...

How to install Attracta SEO Tools plugin

RequirementscPanel/WHM needs to be installed on your server. Step 1: SSH into your server and go...

How to Install CpCleaner in cPanel through SSH?

Installation Run the following shell commands as root via SSH: wget -O cpc-1.0.3.tar...

How to Secure a cPanel/WHM Web Server

Here are a few basic steps that you should keep in mind for keeping a server secure. 1) Strong...