Home>Article>Database> How to check the Redis version number?

How to check the Redis version number?

青灯夜游
青灯夜游 Original
2019-06-06 15:29:32 61814browse

How to check the Redis version number?

Check the redis version number under Windows

1. Open the directory where redis is located and start the redis-server server.

2. Start the redis-cli client.

3. Client input: info

The result is as follows:

How to check the Redis version number?

Check the version number of redis under linux

There are two ways to check the redis version under Linux:

1. Check the server version

**二者都可以** redis-server --version redis-server -v

Output:

How to check the Redis version number?

2. Check the client version

**二者都可以** redis-cli -v redis-cli --version

Output:

How to check the Redis version number?

Strictly speaking: the result obtained throughredis-clishould be the version of redis-cli; however, redis-cli and redis-server are generally compiled from the same source code. So it should be the same.

Recommended related Redis video tutorials: "Redis Video Tutorial"

The above is the detailed content of How to check the Redis version number?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn