Home> Database> Redis> body text

How to check the Redis version number?

青灯夜游
Release: 2019-06-18 10:51:18
Original
61739 people have browsed it

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
Copy after login

Output:

How to check the Redis version number?

2. Check the client version

**二者都可以** redis-cli -v redis-cli --version
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!