1. Install Libevent first. You need to specify an installation path during configuration, that is./configure–prefix=/usr; then make; then make install;
2. To install the memcached, you need to specify the installation path of libevent when configuring./configure–with-libevent=/usr; then make; then make install;
This completes the installation of Linux under the Memcache server side.
The detailed methods are as follows:
1. Install libevent:# tar zxvf libevent-1.2.tar.gz# cd libevent-1.2#./configure–-prefix=/usr# make# Make Install2. Installing memcached:# cd/tmp# tar zxvf memcached-1.2.0.tar.gz# cd memcached-1.2.0#./configure–with-libevent=/usr# make# make Install
Memcached Open
memcached-d-U root# no proof on Success # connection parameter-P listener Port-L connection IP address, default is native-D start memecache service-D Restart Restart-D stop|shutdown off service-D Install-D Uninstall Uninstall-U run as identity only valid under root-m maximum memory usage, unit MB, default 64MB, maximum 2g-m memory exhausted when return error-C max simultaneous connection quantity, default is 1024-f block size growth because, The default is 1.25-n minimum allocation space, key+value+flags default 48-h display Help # using Telnet to connect telnet localhost 11211# directly press ENTER will cause a client error.
CentOS Installation Memcache