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:
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:
2. Check the client version
**二者都可以** redis-cli -v redis-cli --version
Output:
Strictly speaking: the result obtained throughredis-cli
should 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!