Skip to content

Install Memcached

To install Memcached, SSH into your server as root and run the following command.

Terminal window
sudo apt-get install memcached

Once installed, Memcached will be listening on port 11211.

Memcached Statistics

You can view statistics for Memcached by running the following command. You may need to install the netcat package to run this command.

Terminal window
echo stats | nc 127.0.0.1 11211

Example output:

STAT pid 15669
STAT uptime 1757436
STAT time 1392693208
STAT version 1.4.13
STAT libevent 2.0.16-stable
STAT pointer_size 64
STAT rusage_user 28.753797
STAT rusage_system 30.577911
STAT curr_connections 5
STAT total_connections 38
STAT connection_structures 6
...
END