How to install Redis on Amazon Linux or CentOS

Steps to Install Redis on Linux OS/RHEL/CentOS

In this Redis tutorial, you will know how to install Redis on Amazon Linux or Centos.

Redis is an open source, it stores data structure in-memory, which is also used as a database/cache. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, geospatial indexes with radius queries and streams.

To Know more check out Redis:

In this blog, we will see how to install Redis v3.2 on Amazon Linux or Centos using YUM.

Step 1: Enable EPEL repository:

Enable EPEL (Extra Packages for Enterprise Linux) repository on server.

Step 2: Clean all yum repo and update repolist:

Step 3: Install Redis on the server by running command

Step 4: Check redis status

Commands to Start/Stop/Restart Redis service on amazon Linux or CentOS

How to test Redis in Linux?

Before testing check Redis server is working, if not start the Redis service

Test Redis Installation: Command to check redis is properly installed and working normally if response is PONG from below command.

Step 6: Redis server configuration file.

Redis server listen on port 6379 you can update configuration in file “/etc/redis.conf”

Eg: Command to check redis server listing on which port – here in below output redis is listen on 6379 port

Step 7: Auto start Redis service on next boot

Some of the Basic Troubleshooting while Installing Redis:

Follow below command to fix this issue:

This is the end of the tutorial where you learn how to install Redis on Amazon Linux or CentOS.

Related Articles

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Adblock Detected

Please consider supporting us by disabling your ad blocker
%d bloggers like this: