• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial 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
5645

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

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

Related Tutorials in How to Install Redis 5 on CentOS 7.6

Related Tutorials in How to Install Redis 5 on CentOS 7.6

How To Install AnyDesk on Centos 7
How To Install AnyDesk on Centos 7
Apr 2, 2018
How to install Tiki Wiki CMS Groupware on CentOS 7
How to install Tiki Wiki CMS Groupware on CentOS 7
May 31, 2018
How to install PHP ImageMagick on CentOS 7
How to install PHP ImageMagick on CentOS 7
Nov 4, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How to enable or disable repositories in CentOS
How to enable or disable repositories in CentOS
Mar 28, 2018
How to install AWStats on CentOS 7
How to install AWStats on CentOS 7
Dec 8, 2017
How to install Apache JMeter in CentOS 7
How to install Apache JMeter in CentOS 7
Mar 24, 2017

Related Forums in How to Install Redis 5 on CentOS 7.6

Related Forums in How to Install Redis 5 on CentOS 7.6

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
CentOS
ceriaimmaculate class=
setfacl : command not found
Jan 3, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018
CentOS
landon class=
Command to find SNMP Version
May 28, 2018
CentOS
arjitharon class=
cannot start minio service help
Mar 10, 2018
Apache tomcat
AadrikaAnshu class=
Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program
Jun 17, 2019
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019
OpenVAS
frank class=
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
Dec 20, 2018
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 keel johnston ?
Unhide the folders on windows Explorer

Give any solutions to unhide folder using command prompt?

forum3

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.