17
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

cURLでRedisの動作確認

Last updated at Posted at 2017-07-09

最近はサーバにtelnetクライアントが入っていないけど、curlは標準で入ってるんですね。ってことで、こんな感じでredisの動作確認ができます。

bash$ curl -s telnet://redis.da.yo:6379
set ugokukana ugoitayo
+OK
get ugokukana
$9
ugoitayo
quit
+OK

bash$ 

例)docker内のredisにも

こんな感じでたたけるよっ

bash$ docker-compose exec web bash -c "curl telnet://redis:6379"
flushall
+OK
quit
+OK

bash$ 

おわりに

redis-cliがなくてもあわてなくて済むね

17
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?