How to Install Redis on Linux server with CentOS



Is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

We will learn how to How to Install Redis on Linux server with CentOS 6.7.


  • CentOS 6.7 server
  • Access server via SSH with root user permission

Step 1 — Enable EPEL repository

First we need to enable EPEL (Extra Packages for Enterprise Linux) repository on server.

$ wget

If wget command not found, try running yum install wget then run the above command.

Now run command:

$ rpm -ivh epel-release-7–5.noarch.rpm

Step 2 — Install redis

Install redis on server by running command:

$ yum install redis -y

Check status redis:

$ service redis status

Start/Stop/Restart redis server:

$ service redis start|stop|restart

Test redis installation: $ redis-cli ping . If the response output is PONG, that mean installation is completed successfully.

Step 3 — Configuration redis server

Edit configuration follow path /etc/redis.conf . Don’t forget restart redis.

Listing port of redis server:

$ ps aux | grep redis

Write a Comment

Your email address will not be published. Required fields are marked *

You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>