Installing memcached
You can usually install memcached for the Linux distribution of your choice by using the package system used by that version of Linux—RPM for Red Hat-based Linux systems or APT for Debian-based Linux systems. This will usually get you the latest compatible version for that distribution. However, memcached is a fast-evolving project, and they are constantly improving it or adding security bug fixes. It is also a very widely used project, so the community is constantly providing patches to memcached.
Note
The best way to ensure that you are using the latest stable version is to get the source yourself and compile and install it. This is a pretty straightforward process and follows standard Linux installation procedures.
The latest version of memcached is always available at http://memcached.org/. At the time of writing this chapter, the latest version of memcached is 1.4.4.
# cd /usr/local/src
# wget http://memcached.googlecode.com/files/memcached-1.4.4.tar.gz
# tar zxvf...