How to Install Redis on Your VPS/Dedicated Server

Install Redis on VPS/Dedicated server

You may have already heard about Redis databases. Likewise, you may have noticed that many websites use Redis as an object cache to serve pages faster. In this article, we’ll show you how to install Redis on your VPS or Dedicated server.

How To Install Redis

Add EPEL repository, if needed:

yum -y install epel-release

Install Redis with yum package manager:

yum install redis -y

Now, you will just need to start the Redis service, which will be different for certain versions of Centos:

CentOS 5/6:

service redis start
chkconfig redis on

For CentOS 7:

systemctl start redis
systemctl enable redis

How To Test Your Redis Installation

Now, you should have Redis installed and running as a service in your system. You can test the installation with the following command:

redis-cli ping

And you will see this response:


Well done! You now know how to install Redis on your VPS/Dedicated server. If you have any issues, or require a more unique configuration, consider working with the InMotion Hosting managed hosting team:

Christopher Maiorana Content Writer II

Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.

More Articles by Christopher

5 thoughts on “How to Install Redis on Your VPS/Dedicated Server

  1. You need to also include information how to install redis php extension as redis cache is used with conjunction with php or similar programming language.

    1. Thanks for your input on the issue. We will review the documentation to make sure that it is added as needed.

Was this article helpful? Join the conversation!