Installing Redis on Linux Using a Package Manager

In this article you will be learing Installing Redis on Linux using a package manager. These steps are easy to follow and with no time you can get Redis installed and running.

Get any of the courses at a very special price. The offer is available only for a limited time.

Before we begin, It is worth mentioning that this will only work if you’ve internet running on your Unix/Linux Server. Read this blog to know how to install Redis in offline mode.
Redis package is not included in the default CentOS repositories. So we need to start by configuring REMI Repository. Run below commands to configure REMI Repository:
sudo yum install -y epel-release yum-utils
sudo yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum-config-manager --enable remi
Now you’re good to install Redis by running below command:
sudo yum install -y redis
Remember, You’ve just installed Redis, But it has not started yet. Run below command to start redis:
sudo systemctl start redis
If you want redis should automatically start if your server reboots. Run below command:
sudo systemctl enable redis

I hope you liked this article about Installing Redis on Linux using a package manager.. You can learn more about Redis from below articles:

Get any of the courses at a very special price. The offer is available only for a limited time.

Scroll to Top