1.
Installing Redis on Linux (Ubuntu/Debian)
a) Update the package list:
CMD:
sudo apt update
b) Install Redis:
CMD:
sudo apt install redis-server
c) Enable Redis to start on boot:
CMD:
sudo systemctl enable redis-server
d) Start Redis:
CMD:
sudo systemctl start redis-server
e) Check Redis status:
CMD:
sudo systemctl status redis-server
2) Installing Redis on Windows
For Windows, you can download a pre-compiled Redis binary from
'https://github.com/microsoftarchive/redis/releases' (as Redis doesn’t have
official support for Windows).
a) Download the .zip file.
b) Extract the folder.
c) Run the redis-server.exe file to start the Redis server.
3) Check the Redis Connection
a) Test the Redis connection by starting the Redis CLI:
CMD:
redis-cli
b) Ping Redis to check if the server is running: In the Redis CLI, type:
CMD:
PING
If Redis is running, it should respond with:
CMD:
PONG
c) Exit the Redis CLI:
CMD:
exit
Once you get a PONG response, your Redis server is successfully installed and
running!.