Install Redis on Centos 7 How To

How To install Redis on Centos 7

Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

Install Redis with Yum

yum install redis php-pecl-redis

Enable Redis service to start on boot

systemctl enable redis-server.service

Disable Redis service from start on boot

systemctl disable redis-server.service

Start/Stop/Restart Redis

Start

systemctl start redis-server.service

Stop

systemctl stop redis-server.service

Restart

systemctl restart redis-server.service

Check if Redis is Running

Is Running

systemctl is-active redis-server.service
 
 
 
 
  • 118 Users Found This Useful
Was this answer helpful?

Related Articles

How To Add Date and Time To Bash History

As Linux users and engineers, we often have to look back in our bash history to figure out...

How do I SSH into my VPS? (OS X/Terminal)

If you are on a Mac, SSH-ing into your VPS is very simple. Simply launch "Terminal" by going to...

CentOS 7 KVM Template Disk Space Fix

NOTE: This ONLY applies to KVM VPS clients, not OpenVZAfter reinstalling your OS using the CentOS...

CentOS One Liner Commands

Centos Oneliners kill all pts for x in $(ps aux | grep pts| awk '{print $2}'); do kill...

Install mod extact forward - Show Real IP behind Proxy

How to Show the Real IP when Behind a Proxy mod_extract_forwarded is designed to transparently...