0% found this document useful (0 votes)
31 views1 page

Redis Installation and Connection

The document provides step-by-step instructions for installing Redis on both Linux (Ubuntu/Debian) and Windows. For Linux, it includes commands for updating the package list, installing Redis, enabling it to start on boot, starting the service, and checking its status. For Windows, it outlines downloading a pre-compiled binary, extracting it, and running the server, along with instructions for testing the Redis connection using the Redis CLI.

Uploaded by

jawahar.r
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views1 page

Redis Installation and Connection

The document provides step-by-step instructions for installing Redis on both Linux (Ubuntu/Debian) and Windows. For Linux, it includes commands for updating the package list, installing Redis, enabling it to start on boot, starting the service, and checking its status. For Windows, it outlines downloading a pre-compiled binary, extracting it, and running the server, along with instructions for testing the Redis connection using the Redis CLI.

Uploaded by

jawahar.r
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

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!.

You might also like