Question: How to check Memcached version in Linux?
Answer
To check the version of Memcached installed on a Linux system, you can use the memcached -V
command. This will print the version information of Memcached.
Here's an example of how to use the command:
$ memcached -V
memcached 1.5.22
In this example, 1.5.22
is the version number of Memcached installed.
Another way to check the version of Memcached is to use the telnet
command and connect to the Memcached server:
$ telnet localhost 11211
Trying ::1...
Connected to localhost.
Escape character is '^]'.
version
VERSION 1.5.22
END
In this example, 1.5.22
is the version number of Memcached installed. The VERSION
command is used to retrieve version information from the Memcached server.
You can also check the version of Memcached by looking at the package manager. For instance, if you're using Debian or Ubuntu, you can run the following command:
$ apt-cache show memcached | grep Version
Version: 1.5.22-2ubuntu0.1
In this example, 1.5.22-2ubuntu0.1
is the version number of Memcached installed.
Was this content helpful?
Other Common Memcached Questions (and Answers)
- Does Memcached expire?
- Does Memcached write to disk?
- Does Memcached-top come by default with Memcached?
- What is the location of Memcached error log?
- How does Memcached consistent hashing work?
- How does Memcached work?
- Does restarting Memcached clear cache?
- How to connect to Memcached?
- How do you configure Memcached?
- Does Memcached support encryption?
- How to pronounce Memcached?
- How to install Memcached in CentOS 7?
Free System Design on AWS E-Book
Download this early release of O'Reilly's latest cloud infrastructure e-book: System Design on AWS.
Start building today
Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement.