By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Cloudbooklet Logo
  • Artificial Intelligence
  • Applications
  • Linux
Notification

Free AI Image Generator

AI Tools
Cloudbooklet AICloudbooklet AI
Search
AI Tools
  • Artificial Intelligence
  • Applications
  • Google Cloud
  • Compute Engine
  • Linux

Top Stories

Explore the latest updated news!
Character Ai Group Chat

What is Character AI Group Chat and How to Get Started?

Skype Voice Changer

Skype Voice Changer: How to Transform Your Voice on Skype Calls

Antifake

How AntiFake can Protect your Voice from Deepfake AI

Follow US
  • About
  • Contact
  • Disclaimer
  • Privacy Policy
Cloudbooklet © 2023 All rights reserved.

Home » Google Cloud » How to Install and Configure Redis on Debian

Google CloudLinux

How to Install and Configure Redis on Debian

Last updated: 2021/09/14 at 5:20 AM
By Cloudbooklet
Install Redis On Debian
SHARE
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

Redis is a in-memory key-value store known for performance and flexibility. In this guide you are going to learn how to install and configure Redis on Debian.

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

Table of Contents
PrerequisitesStep 1: Install RedisStep 2: Configure Redis as a ServiceStep 3: Check Redis StatusConclusion

Prerequisites

  • SSH access to the server.

Step 1: Install Redis

Start by updating the packages to latest version.

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.

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.

Change the value to systemd to use the system init.

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

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.

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: enabl>
     Active: active (running) since Tue 2021-09-14 13:24:43 UTC; 1h 32min ago
       Docs: http://redis.io/documentation,
             man:redis-server(1)
   Main PID: 2354 (redis-server)
      Tasks: 4 (limit: 19198)
     Memory: 1.8M
     CGroup: /system.slice/redis-server.service
             └─2354 /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 Debian.

Conclusion

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

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

TAGGED: Debian
Share This Article
Facebook Twitter Whatsapp Whatsapp LinkedIn Reddit Telegram Copy Link Print
Share
Leave a review Leave a review

Leave a review Cancel reply

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

Please select a rating!

Popular

Deepnude Pics Without Blur
Create High-Quality DeepNude Pics Without Blur – Top Websites and Tools
Artificial Intelligence
Deepnude Ai
8 Best Free DeepNude AI Generators to Make AI DeepNudes
Artificial Intelligence
Temu Glitch
How to Get 100% off Coupons on Temu Glitch using Tinyurl
Artificial Intelligence
Torrent Sites
10 Best Torrent Sites in 2023 (working sites)
Artificial Intelligence
- Advertisement -

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Related Stories

Uncover the stories that related to the post!
Ubuntu 23.10
Linux

What’s New and Exciting in Ubuntu 23.10 Mantic Minotaur? A Comprehensive Guide

Symbolic Links In Linux
Linux

Symbolic Links in Linux: What They Are and How to Use Them

Ubuntu Password
Linux

Reset your Forgotten Ubuntu Password in 2 Minutes

&Quot; Systemd Service On Linux
Linux

How to Create a New systemd Service on Linux: A Step-by-Step Guide

Cloudbooklet Logo
  • Categories:
  • Artificial Intelligence
  • Applications
  • Google Cloud

Quick Links

  • About
  • Contact
  • Disclaimer
  • Privacy Policy
Cloudbooklet © 2023 All rights reserved.
Welcome Back!

Sign in to your account

Lost your password?