redis,

How to check Redis connection with Telnet

Mar 26, 2022 · 1 min read · Post a comment
How to check Redis connection with Telnet

A lot of useful checks can be made with telnet in terms of connectivity, sending test emails, access to databases, etc. Telnet is an application protocol based on TCP and it can allow you to establish client-server tcp connections. Here I’m gonna show you quickly, how to check Redis connectivity with telnet.

Prerequisites

  • Telnet

Solution

Step 1. To check Redis connection with Telnet, run:

telnet <redis-endpoint-or-ip> <port>

Step 2. Example:

telnet redis-prod.devcoops.com 6379

Step 3. Once the connection is established, check if redis is alive.

ping

Example output:

PONG

Conclusion

The last step shows us that Redis is responding to our request. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.