Restart the Redis service for changes to take effect: sudo systemctl restart redis-server # IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES # JUST COMMENT THE FOLLOWING LINE.
Search for a line that begins with bind 127.0.0.1 ::1 and comment it. To configure Redis to accept remote connections open the Redis configuration file with your text editor: sudo vim /etc/redis/nf 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. You can connect to the Redis server only from the machine where the Redis service is running. Configure Redis Remote Access #īy default, Redis is configured to listen on localhost only. That’s it! Redis is installed and running on your Debian 10 server, and you can start using it. Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Thu 14:15:23 PST 27s agoĬGroup: /system.slice/rvice The output should look something like this: You can verify it by typing: sudo systemctl status redis-server The Redis service will start automatically when the installation finishes.
To install it run the following commands as root or user with sudo privileges : sudo apt update sudo apt install redis-server Redis version 5.0.x is included in the default Debian 10 repositories.
In this tutorial, we will cover how to install and configure Redis on a Debian 10, Buster. Redis provides high availability via Redis Sentinel, and automatic partitioning across multiple Redis nodes with Redis Cluster. 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 is an open-source in-memory key-value data store.