memcached Source Installation
Download libevent:
wget https://cloud.github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
Download memcached:
wget http://memcached.org/files/memcached-1.5.0.tar.gz
Installing Libevent
TAR-ZXVF libevent-2.0.21-stable.tar.gz
CD libevent-2.0.21-stable
./configure--prefix=/usr/local/src/libevent/
Make && make install
Install the memcached and require the installation location of the specified libevent in the installation
TAR-ZXVF memcached-1.5.0.tar.gz
CD memcached-1.5.0
./configure--with-libevent=/usr/local/src/libevent/--prefix=/usr/local/src/memcached
Make && make install
To start the server side of Memcache:
/usr/local/src/memcached/bin/memcached-d-M 2000-u root-p 12000-c 256-p./memcached.pid
The-D option is to start a daemon.
-M is the amount of memory allocated to Memcache, in megabytes.
-U is the user running memcache.
-L is the server IP address of the listener.
-P is the port that sets Memcache listening.
The-c option is the maximum number of concurrent connections to run, and the default is 1024.
-P is a PID file that is set to save Memcache, saved in/tmp/memcached.pid.
You can also start multiple daemons, but the ports cannot be duplicated.
This article is from "Linux operations-Small Ink" blog, please be sure to keep this source http://xmomo.blog.51cto.com/5994484/1970107
memcached Source Installation