‘OK’ on the output displayed the connection is successfully established. It will ask for the password so we now enter the password which is as “itslinux” so execute: > AUTH itslinux
Now to confirm the connection, type: >ping So the configuration has been done successfully, to connect Redis with Debian run the command: $ redis-cli Restart the Redis using the systemctl command: $ sudo systemctl restart redis-serverĪgain check the status using the systemctl command: $ sudo systemctl status redis-server Now exit the editor by pressing CTRL+X, but before it saves the file by pressing CTRL+S. Uncomment it and replace the foobared and write anything to set your password, for example, in our case we set it to “itslinux”. To set the password for the Redis, search for “foobared” as: Lastly, increase the memory of the server by adding these two lines in the end of the configuration file: maxmemory 500mb
#DEBIAN INSTALL REDIS UPDATE#
The now first step is to allow remote access, for this find out the line having “bind 127.0.0.1: : 1” and just comment it by putting a hash symbol “#” in start:įor security purposes, update the port to 6379 as shown: $ sudo nano /etc/redis/nfĪ configuration file will be displayed like this: To edit the configuration settings of Redis on Debian 11, we will open the configuration file which is present at the path /etc/redis/nf with the help of nano editor. The output is showing the Redis is installed successfully as well as it is running. Once the package is installed, we will check the status of it by using the systemctl command: $ sudo systemctl status redis-server Once the package is up to date, we will install Redis by executing the command: $ sudo apt install redis-server -y
#DEBIAN INSTALL REDIS HOW TO#
How to install Redis on Debian 11īefore proceeding with the installation procedure of Redis, it is recommended to update the repository of Debian 11 using the command: $ sudo apt update In this write-up, we will discuss the installation and configuration of Redis on Debian 11 which is the latest distribution of Linux and also known as Debian Bullseye. As it is discussed, it stores data in key values, moreover, it also sorts the data in an organized order. Redis is derived from the “Remote Dictionary Server”, which is a NoSQL database used to store the data of the websites in the form of key values by following the BSON model.