check redis server code example Example 1: check redis version redis-server --version Example 2: check redis server status redis-cli ping