How to Install and Configure Redis on Debian 10 Linux

Redis is an open-source in-memory key-value data store. It can be used as a database, cache, and, message broker and supports various data structures such as Strings, Hashes, Lists, Sets, and more. Redis provides high availability via Redis Sentinel, and automatic partitioning across multiple Redis nodes with Redis Cluster.

In this tutorial, we will cover how to install and configure Redis on a Debian 10, Buster.

Installing Redis on Debian

Redis version 5.0.x is included in the default Debian 10 repositories. To install it run the following commands as root or user with sudo privileges:

sudo apt update
sudo apt install redis-server

The Redis service will start automatically when the installation finishes. You can verify it by typing:

sudo systemctl status redis-server

The output should look something like this:

● redis-server.service - Advanced key-value store
   Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2019-11-28 14:15:23 PST; 27s ago
 Main PID: 2024 (redis-server)
    Tasks: 4 (limit: 2359)
   Memory: 6.9M
   CGroup: /system.slice/redis-server.service
           └─2024 /usr/bin/redis-server

Redis service will fail to start if IPv6 is disabled on your server.

That’s it! Redis is installed and running on your Debian 10 server, and you can start using it.

Configure Redis Remote Access

By default, Redis is configured to listen on localhost only. You can connect to the Redis server only from the machine where the Redis service is running.If you are using a single server setup, where the client connecting to the database is also running on the same host, you should not enable remote access.

#10 linux #debian 10 linux #redis

How to Install and Configure Redis on Debian 10 Linux
8.95 GEEK