Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud

How to Install Redis on Ubuntu 20.04

by Cloudbooklet
3 years ago
in Google Cloud
How To Install Redis On Ubuntu 20.04
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

How to install Redis on Ubuntu 20.04. Redis is a key-value store known for performance and flexibility. In this guide you are going to learn how to install and configure Redis on Ubuntu 20.04. This setup is tested on Google Cloud with an Ubuntu OS, so this setup will work on any cloud services like […]

ADVERTISEMENT

How to install Redis on Ubuntu 20.04. Redis is a key-value store known for performance and flexibility.

In this guide you are going to learn how to install and configure Redis on Ubuntu 20.04.

This setup is tested on Google Cloud with an Ubuntu OS, so this setup will work on any cloud services like AWS, Azure or any VPS or dedicated servers.

ADVERTISEMENT

Prerequisites

  • SSH access to the server.

Step 1: Install Redis

Start by updating the packages to latest version.

You might also like

How To Setup Ssh Keys On Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

4 months ago
Draggan Ai Editing Tool Install And Use Draggan Photo Editor

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

4 months ago
sudo apt update

Install Redis using the following command.

sudo apt install redis-server

Once the installation is completed you can check the version of Redis using the following command.

ADVERTISEMENT
redis-server -v
Output
Redis server v=5.0.7 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=636cde3b5c7a3923

Step 2: Configure Redis as a Service

To get more control over Redis operations it is necessary to configure an init system to manage it as a service.

By default the supervised directive in Redis configuration is set to no which is the one that declares the init system.

ADVERTISEMENT

Change the value to systemd to use the Ubunut’s init system.

Open the configuration file located in /etc/redis/redis.conf.

ADVERTISEMENT
sudo nano /etc/redis/redis.conf

Make changes to the supervised value to systemd so that it looks like below.

. . .
supervised systemd
. . .

Hit CRTL + X followed by Y and Enter to save and exit the file.

ADVERTISEMENT

Restart Redis for the changes to take effect.

sudo systemctl restart redis.service

Step 3: Check Redis Status

Check Redis status using the systemctl command after the service is restarted.

sudo systemctl status redis

You will receive an output similar to the one below which indicates Redis is working fine.

Output
● redis-server.service - Advanced key-value store
    Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
    Active: active (running) since Wed 2020-09-02 05:53:14 UTC; 5s ago
      Docs: http://redis.io/documentation,
man:redis-server(1)
   Process: 17433 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS)
  Main PID: 17444 (redis-server)
     Tasks: 4 (limit: 682)
    Memory: 1.8M
    CGroup: /system.slice/redis-server.service
            └─17444 /usr/bin/redis-server 127.0.0.1:6379

Now Redis will get started automatically every time the system boots up.

If you wish to start up Redis manually for some use cases you can disable the service using the following command.

sudo systemctl disable redis

That’s it. Now you have your Redis server running on your Ubuntu 20 .04.

Conclusion

Now you have learned how to install and configure Redis server on Ubuntu 20.04.

Thanks for your time. If you face any problem or any feedback, please leave a comment below.

Tags: Ubuntu 20.04
ShareTweetSendShare
Cloudbooklet

Cloudbooklet

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

Set Up Deep Learning With Nvidia, Cuda, Cudnn On Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

7 months ago
How To Install Or Upgrade Php 8.2 On Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

9 months ago
How To Change Timezone On Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

1 year ago
How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago

Follow Us

Trending Articles

Minecraft Server Hosting

10 Best Minecraft Server Hosting Providers in 2023

September 18, 2023

Top 10 Advantages of a Cloud VPS Server

10 Best AI Song Generator in 2023 (Free and Paid)

Microsoft Surface Event: The Most Exciting and Innovative Launches and Updates

How to Delete Netflix Account Permanently

Validator AI: The AI Powered Business Idea Validator

Popular Articles

Ai Voice Cloning Tool

6 Best AI Voice Cloning Tools that You Need to Try in 2023

August 28, 2023

How to Fix TikTok Comment Glitch in 5 Easy Steps

Top 8 Anonymous Email Account Providers to Protect Your Online Identity

10 NFT Art Generator: Create and Sell Your Own NFT Artwork

7 Best AI Face Generator: Create Realistic Faces from Text Online Free

Top 5 AI Portrait Generators for Free and Paid Options

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.