Dragonfly Cloud announces new enterprise security features - learn more

Dragonfly

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)

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

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