↑ ↓ select, Enter open, Esc close

Check whether Redis is reachable

Adjust the values, the command updates live
user@server
redis-cli -h 127.0.0.1 -p 6379 ping

Connects to the Redis server and sends PING. The reply PONG confirms that Redis is running and listening on that host and port. Connection refused points to a stopped service or a different port, NOAUTH to a configured password.

Note: With password protection, set the environment variable REDISCLI_AUTH instead of using -a, so the password does not end up in the process list and the shell history.

Also searched as

  • is redis running
  • test redis connection
  • object cache not reachable

Related one-liners

All in Redis and Memcached

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.