Question: How to check KeyDB version?
Answer
To check the version of KeyDB, you can use the keydb-server
command-line tool with the --version
option. Simply run the following command:
```
keydb-server --version
```
This will output the version of KeyDB that is currently installed on your system. For instance, if you have version 6.0.16 installed, the output would be:
```
KeyDB version 6.0.16 (Git:unknown/unknown)
```
If the keydb-server
command is not found, you may need to add KeyDB's bin directory to your system's PATH environment variable. On Linux and macOS, you can do this by adding the following line to your shell configuration file (e.g., ~/.bashrc
or ~/.zshrc
):
```
export PATH=/usr/local/bin:$PATH
```
On Windows, you can add the path to KeyDB's bin directory to the PATH environment variable via the Control Panel.
Alternatively, you can also check the version of KeyDB from within the KeyDB CLI by running the INFO
command:
```
127.0.0.1:6379> INFO SERVER
Server
keydb_version:6.0.16
keydb_git_sha1:00000000
keydb_git_dirty:0
keydb_build_id:4bb25c2d4fc4a7fc
...
```
This will output a lot of information about the server, including the KeyDB version under the keydb_version
field.
That's it! You now know how to check the version of KeyDB both from the command line and from within the KeyDB CLI.
Was this content helpful?
Other Common KeyDB Questions (and Answers)
Free System Design on AWS E-Book
Download this early release of O'Reilly's latest cloud infrastructure e-book: System Design on AWS.
Switch & save up to 80%
Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement. Instantly experience up to a 25X boost in performance and 80% reduction in cost