• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Install Redis 5 on CentOS 7.6

  • 01:12 yum --enablerepo=remi install redis
  • 01:31 systemctl enable --now redis
  • 01:43 vim /etc/redis.conf
  • 02:04 systemctl restart redis
  • 02:11 systemctl status redis
  • 02:15 redis-cli
{{postValue.id}}

To install Redis 5.0 on CentOS 7.6

Pre-requisite:

Install the remi-repo for CentOS 7

http://rpms.remirepo.net/enterprise/remi-release-7.rpm

Enable the remi repo for redis server and also install it

yum --enablerepo=remi install redis

Enable the redis server

Enable Network listen for redis Service

Restart the servcie of redis and check the status

Test the connection of redis server

Installation

List the contents to view the installed Remi repository.

[root@linuxhelp ~]# ll
total 28
-rw-------. 1 root root  2097 Dec  9  2017 anaconda-ks.cfg
drwxr-xr-x. 2 root root     6 Dec 12  2017 Desktop
drwxr-xr-x. 2 root root     6 Dec 12  2017 Documents
drwxr-xr-x. 2 root root     6 Dec 12  2017 Downloads
-rwxr-xr-x  1 root root  4037 May 21 16:43 ffmpeg-install
-rw-r--r--. 1 root root  2128 Dec 12  2017 initial-setup-ks.cfg
drwxr-xr-x. 2 root root     6 Dec 12  2017 Music
drwxr-xr-x. 2 root root     6 Dec 12  2017 Pictures
drwxr-xr-x. 2 root root     6 Dec 12  2017 Public
-rw-r--r--  1 root root 16004 Mar  8 13:10 remi-release-7.rpm
drwxr-xr-x. 2 root root     6 Dec 12  2017 Templates
drwxr-xr-x. 2 root root     6 Dec 12  2017 Videos

Enable the remi-repo and install Redis server.

[root@linuxhelp ~]# yum --enablerepo=remi install redis
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.vbctv.in
 * epel: sg.fedora.ipserverone.com
 * extras: mirror.nbrc.ac.in
 * remi: rpms.remirepo.net
 * remi-php72: rpms.remirepo.net
 * remi-safe: rpms.remirepo.net
 * updates: mirror.nbrc.ac.in
remi                                                                                                                   | 3.0 kB  00:00:00     
remi/primary_db                                                                                                        | 2.3 MB  00:00:08     
Resolving Dependencies
--> Running transaction check
---> Package redis.x86_64 0:5.0.5-1.el7.remi will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================
 Package                        Arch                            Version                                   Repository                     Size
==============================================================================================================================================
Installing:
 redis                          x86_64                          5.0.5-1.el7.remi                          remi                          922 k

Transaction Summary
==============================================================================================================================================
Install  1 Package

Total download size: 922 k
Installed size: 3.0 M
Is this ok [y/d/N]: y
Downloading packages:
redis-5.0.5-1.el7.remi.x86_64.rpm                                                                                      | 922 kB  00:00:03     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : redis-5.0.5-1.el7.remi.x86_64                                                                                              1/1 
  Verifying  : redis-5.0.5-1.el7.remi.x86_64                                                                                              1/1 

Installed:
  redis.x86_64 0:5.0.5-1.el7.remi                                                                                                             

Complete!

Enable the Redis service as follows.

[root@linuxhelp ~]# systemctl enable --now redis
Created symlink from /etc/systemd/system/multi-user.target.wants/redis.service to /usr/lib/systemd/system/redis.service.

Modify the configuration file of Redis server.

[root@linuxhelp ~]# vim /etc/redis.conf
Bind 0.0.0.0 (61 line)

Restart the service of Redis.

[root@linuxhelp ~]# systemctl restart redis

Check the status of Redis service.

[root@linuxhelp ~]# systemctl status redis
● redis.service - Redis persistent key-value database
   Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/redis.service.d
           └─limit.conf
   Active: active (running) since Tue 2019-05-21 17:03:53 IST; 24s ago

Test the connection of redis-server using the command line interface.

[root@linuxhelp ~]# redis-cli
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> exit

With this, the nstallation of Redis server 5.0 on CentOS 7.6 comes to an end.

Tags:
john
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is Redis 5.0v used for?

A

Redis 5.0v is an open-source, in-memory data structure store used as a database, cache and message broker.

Q

What does Redis 5.0v support?

A

Redis 5.0v supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps hyperloglogs, geospatial indexes with radius queries and streams.

Q

What is the abbreviation of Redis 5.0?

A

Redis Stands for remote Dictionary server

Q

What does in-memory data structure mean in Redis 5.0v?

A

An in-memory data structure is a data structure that resides entirely in RAM and is distributed among multiple servers.

Q

What is the use of in-memory data structure in Redis?

A

Accessing data in memory eliminates seek time when querying the data, which provides faster and more predictable performance than disk

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luk Van De Looverbosch ?
How to create a root ?

Hello,
How to create root@linuxhelp in Linux Mint 20.1 64-bit ?
Thanks in advance for your reply.
Best regards.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.