1.获取memcached包

     wget http://www.memcached.org/files/memcached-1.4.33.tar.gz

     链接地址可到memcached.org查看

2.解压包 tar -zxvf memcached-1.4.33.tar.gz

3.进入解压目录cd memcached-1.4.33

4.安装./configure && make && make install

5.在/usr/local/bin/memcached开启memcached进程

6./usr/local/bin/memcached -d -m 100 -u root -p 11211 -c 1024 -P /tmp/memcached.pid

7.查看memcached进程

   ps -ef | grep 11211