1. ホーム
  2. レディス

[解決済み】Redisサーバーのバージョンを確認する

2022-04-21 18:27:07

質問

Redisサーバーのバージョンを確認する方法は?

で見つけました。 Redisサイト というコマンドがあります。

$ redis-server

と表示され、それが私に与えるはずです(サイトによると)。

[28550] 01 Aug 19:29:28 # Warning: no config file specified, using the default config. In order to specify a config file use 'redis-server /path/to/redis.conf'
[28550] 01 Aug 19:29:28 * Server started, Redis version 2.2.12
[28550] 01 Aug 19:29:28 * The server is now ready to accept connections on port 6379
... and so forth ...

が、代わりにこんなのが出てくる。

[8719] 04 Feb 14:51:09.009 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
[8719] 04 Feb 14:51:09.009 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
[8719] 04 Feb 14:51:09.009 # Creating Server TCP listening socket *:6379: bind: Address already in use

つまり、設定する必要があるのですが、欲しいのはバージョンだけなんです!

では、Redisサーバーのバージョンを確認するにはどうすればよいのでしょうか。

解決方法は?

<ブロッククオート

$ redis-server --version

を実行すると、バージョンが表示されます。