share the steps to compile and install memcached services under Linux, and take a look at them.
System: Ubuntu 13.10
First step: Install Libevent-dev
$aptitude Search Libevent-dev
$aptitude Install Libevent-dev
Step two: Download memcached and install (www.jbxue.com)
Website address: http://memcached.org/
$wget-C http://www.memcached.org/files/memcached-1.4.17.tar.gz
$tar-ZXVF memcached-1.4.17.tar.gz
$CD memcached-1.4.17
$./configure--prefix=/usr/local/memcached
$ make
$ sudo make install
Step three: Start memcached
$CD/usr/local/memcached
$./memcached-d-M 1024-u root-l 127.0.0.1-p 11211-p/tmp/memcached.pid
Step three: Check if the installation is successful
$ps-aux | grep memcache #法1
$netstat-antu | grep 11211 #法2
$telnet localhost 11211 #法3
Reference:
Ubuntu under Memcache installation method
Linux memcache installation configuration tutorial
Common command
Start memcached service
#./memcached-d-M 1024-u root-l 127.0.0.1-p 11211-p/tmp/memcache D.pid
Close memcached service
#kill ' cat/tmp/memcached.pid '