Redis redis-cli 使わずにping
redis-cliが入ってない環境でもRedisとの接続確認をしたい
code:sh
(printf "PING\r\n";) | nc <redis-host> 6379
// passwordかけてたら
(printf "AUTH <password>\r\n";) | nc <redis-host> 6379
https://stackoverflow.com/questions/33243121/abuse-curl-to-communicate-with-redis/39214806