• 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 Ubuntu 19.04

  • 00:39 lsb_release -a
  • 00:54 apt update
  • 01:06 apt install redis-server
  • 01:32 systemctl start redis-server.service
  • 01:46 systemctl enable redis-server.service
  • 02:06 apt install php-redis
  • 02:23 redis-cli -v
  • 02:38 redis-cli
{{postValue.id}}

Installation of Redis 5 On Ubuntu 19.04

Redis 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, geospatial indexes with radius queries and streams. This tutorial covers Installation of Redis 5 on Ubuntu 19.04.

Installation process

Check the Ubuntu version you use by using the following command.

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 19.04
Release:	19.04
Codename:	disco

Run the apt update command.

root@linuxhelp:~# apt update
Hit:1 http://in.archive.ubuntu.com/ubuntu disco InRelease
Get:2 http://security.ubuntu.com/ubuntu disco-security InRelease [97.5 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu disco-updates InRelease [97.5 kB]
Hit:4 http://in.archive.ubuntu.com/ubuntu disco-backports InRelease
Fetched 195 kB in 2s (80.0 kB/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
90 packages can be upgraded. Run 'apt list --upgradable' to see them.

Install the Redis 5 by using the following command.

root@linuxhelp:~# apt install redis-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libhiredis0.14 libjemalloc2 liblua5.1-0 lua-bitop lua-cjson redis-tools
Suggested packages:
  ruby-redis
The following NEW packages will be installed:
  libhiredis0.14 libjemalloc2 liblua5.1-0 lua-bitop lua-cjson redis-server redis-tools
0 upgraded, 7 newly installed, 0 to remove and 90 not upgraded.
Need to get 876 kB of archives.
After this operation, 3,862 kB of additional disk space will be used.
Do you w1ant to continue? [Y/n] y
.
.
.
Setting up libhiredis0.14:amd64 (0.14.0-3) ...
Setting up redis-tools (5:5.0.3-4) ...
Setting up redis-server (5:5.0.3-4) ...
Created symlink /etc/systemd/system/redis.service → /lib/systemd/system/redis-server.service.
Created symlink /etc/systemd/system/multi-user.target.wants/redis-server.service → /lib/systemd/system/redis-server.service.
Processing triggers for systemd (240-6ubuntu5) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.29-0ubuntu2) ...

Start the Redis server service by using following command.

root@linuxhelp:~# systemctl start redis-server.service

Enable the Redis server service by using the following command.

root@linuxhelp:~# systemctl enable redis-server.service
Synchronizing state of redis-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable redis-server

Install the Redis PHP extension by using the following command.

root@linuxhelp:~# apt install php-redis
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  php-igbinary
The following NEW packages will be installed:
  php-igbinary php-redis
0 upgraded, 2 newly installed, 0 to remove and 90 not upgraded.
Need to get 195 kB of archives.
After this operation, 805 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
.
.
Unpacking php-redis (4.2.0-1) ...
Setting up php-igbinary (3.0.0-1) ...
Setting up php-redis (4.2.0-1) ...

Check the Redis version by using the following command.

root@linuxhelp:~# redis-cli -v
redis-cli 5.0.3

Use redis-cli tool to verify the connection between the Redis server.

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

With this, the installation of Redis 5 on Ubuntu 19.04 comes to an end.

Tags:
robert
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

Which command to access the redis server in ubuntu terminal?

A

Now the Redis server is ready, run the below command to access Redis application.
# redis-cli

Q

How to install the redis package in ubuntu server?

A

execute the following command to install the Redis package as shown below
# apt-get install redis-server

Q

What does Redis actually mean?

A

Redis means REmote DIctionary Server.

Q

What is the use redis server?

A

Redis 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, geospatial indexes with radius queries and streams

Q

How to check the redis version?

A

Use the following command

#redis-cli -v

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.