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?

White Paper

Free System Design on AWS E-Book

Download this early release of O'Reilly's latest cloud infrastructure e-book: System Design on AWS.

Free System Design on AWS E-Book
Start building today

Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement.