How to install Redis on Ubuntu

watch 1m, 48s
views 2

12:14, 16.03.2022

Redis is a non-relational resident database management system (DBMS). It is, in fact, a repository that contains key-value data. When using Redis, all data is stored in memory, it can only be accessed with a key, but if necessary, the data can be stored on disk. The structure and logic of this DBMS provide significantly higher performance than traditional relational database management systems.

Redis is developed by VMware. Since the software is open-source, so, if necessary, it can be adapted to individual needs and requirements. The maximum amount of data that can be stored in Redis is limited by the amount of RAM on the server, however, so it is not suitable for everyone. Here are the optimal scenarios for using the DBMS:

  • storing sessions and user profiles;
  • queues server;
  • as an alternative to Memcached;
  • for storing data about online users, captcha codes, search engine suggestions, etc.;
  • for small applications where high speed is required – various link shorteners, image boards, blogs, etc.;
  • as a repository of intermediate results of calculations processing large arrays of data.

Now that you know what this DBMS is and what it is for, let's see how to install Redis on Ubuntu 20.04.

Installing Redis on Ubuntu

It takes a few simple steps. On behalf of a user with root-level access rights, we enter two commands with sudo privileges:

sudo apt update
sudo apt install redis-server


No third-party repositories are needed, only an up-to-date DBMS After entering the commands, the installation process will start, it will take no more than a couple of minutes.

You can check the status of the service with the following command:

sudo systemctl status redis-server


If everything went well, you will get the following message:

● redis-server.service - Advanced key-value store
 	Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
 	Active: active (running) since Sat 2020-06-06 20:03:08 UTC; 10s ago
...

By the way, before launching Redis, make sure IPv6 is installed, otherwise, it will not start. Then you can proceed to the final configuration and get started. To learn more about configuring and managing this DBMS, we recommend visiting https://redis.io/the official website where the relevant documentation is stored.

Share

Was this article helpful to you?

VPS popular offers

-8.6%

CPU
CPU
6 Epyc Cores
RAM
RAM
8 GB
Space
Space
100 GB NVMe
Bandwidth
Bandwidth
Unlimited
wKVM-NVMe 8192 Windows

42.3 /mo

/mo

Billed annually

-21.4%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
500 GB
wKVM-SSD 8192 HK Windows

67 /mo

/mo

Billed annually

-4.7%

CPU
CPU
3 Xeon Cores
RAM
RAM
1 GB
Space
Space
40 GB HDD
Bandwidth
Bandwidth
300 Gb
wKVM-HDD HK 1024 Windows

10.3 /mo

/mo

Billed annually

-10%

CPU
CPU
3 Xeon Cores
RAM
RAM
1 GB
Space
Space
20 GB SSD
Bandwidth
Bandwidth
Unlimited
KVM-SSD 1024 Linux

6.6 /mo

/mo

Billed annually

CPU
CPU
8 Epyc Cores
RAM
RAM
32 GB
Space
Space
200 GB NVMe
Bandwidth
Bandwidth
Unlimited
Keitaro KVM 32768
OS
CentOS
Software
Software
Keitaro
/mo

Billed annually

-10%

CPU
CPU
6 Xeon Cores
RAM
RAM
16 GB
Space
Space
400 GB HDD
Bandwidth
Bandwidth
Unlimited
KVM-HDD 16384 Linux

50 /mo

/mo

Billed annually

-9.7%

CPU
CPU
10 Xeon Cores
RAM
RAM
64 GB
Space
Space
300 GB SSD
Bandwidth
Bandwidth
Unlimited
wKVM-SSD 65536 Windows

187.5 /mo

/mo

Billed annually

-10%

CPU
CPU
10 Xeon Cores
RAM
RAM
64 GB
Space
Space
300 GB SSD
Bandwidth
Bandwidth
Unlimited
KVM-SSD 65536 Linux

181.5 /mo

/mo

Billed annually

-26.7%

CPU
CPU
3 Xeon Cores
RAM
RAM
1 GB
Space
Space
20 GB SSD
Bandwidth
Bandwidth
1 TB
KVM-SSD 1024 Metered Linux

10 /mo

/mo

Billed annually

-10%

CPU
CPU
6 Epyc Cores
RAM
RAM
8 GB
Space
Space
100 GB NVMe
Bandwidth
Bandwidth
Unlimited
KVM-NVMe 8192 Linux

36.3 /mo

/mo

Billed annually

Other articles on this topic

cookie

Accept cookies & privacy policy?

We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the HostZealot website.