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.22In 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
ENDIn 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.1In this example, 1.5.22-2ubuntu0.1 is the version number of Memcached installed.
Was this content helpful?
Help us improve by giving us your feedback.
Other Common Memcached Questions (and Answers)
- What is the location of Memcached error log?
- How does Memcached consistent hashing work?
- How to check Memcached memory usage?
- How to use Memcached in Laravel?
- Is Memcached Persistent?
- Where is memcached-tool?
- Is Memcached thread-safe?
- How many objects can be stored in Memcached?
- Where is Memcached config file?
- How can you scale out Memcached to handle growing demand?
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