Introduction
In this challenge, you'll troubleshoot a Redis server connectivity issue by verifying its status. The task involves using the redis-cli command to connect to the Redis server and then using the PING command to confirm that the server is running and responsive.
To complete the challenge, you'll need to execute redis-cli in the terminal, issue the PING command within the Redis CLI interface, verify the server responds with PONG, and then exit the interface using the quit command. The verification process checks for the presence of the PING command in the Redis command history log.
Verify Redis Server Status
The application is experiencing connectivity issues with the Redis server. Your task is to verify the Redis server is running and responsive using the redis-cli command.
Tasks
- Use the
redis-clicommand to ping the Redis server and confirm it responds withPONG.
Requirements
- Execute the
redis-clicommand in the terminal. - Within the
redis-cliinterface, execute thePINGcommand. - Verify that the Redis server responds with
PONG. - Exit the
redis-cliinterface using thequitcommand.
Examples
Successful PING command output:
127.0.0.1:6379> PING
PONG
127.0.0.1:6379> quit

Hints
- The
redis-clicommand connects to the Redis server. - The
PINGcommand checks if the server is responsive. - Ensure Redis server is running before attempting to connect.
Important: Exit the
redis-cliinterface before clicking the "Continue" button.
Summary
In this challenge, the objective is to verify the Redis server's status and responsiveness. This involves using the redis-cli command to connect to the Redis server and then executing the PING command within the redis-cli interface. A successful response of PONG confirms that the Redis server is running and responsive.
The key learning point is understanding how to use the redis-cli tool to interact with a Redis server and how the PING command serves as a basic health check. The challenge emphasizes the importance of verifying server connectivity when troubleshooting application issues related to Redis.


