Memcache installation under Linux (with libevent installation) Tutorial

  
 

The installation server of Memcache server under Linux is mainly to install memcache server. The latest version is memcached-1.3.0. Download: http://www.danga.com/memcached/dist/memcached-1.2.2.tar.gz In addition, Memcache uses the library libevent for Socket processing, so you need to install libevent, the latest version of libevent is Libevent-1.3. (If your system has libevent installed, you don't need to install it): http://www.monkey.org/~provos/libevent/Download: http://www.monkey.org/~provos/libevent-1.3. Tar.gz

Download these two things directly with the wget command. After downloading the source file. 1. Install libevent first. This thing needs to specify an installation path when configuring, ie ./configure –prefix=/usr; then make; then make install; 2. install memcached, just need to specify the installation path of libevent in configuration. /configure –with-libevent=/usr; Then make; then make install; this completes the installation of the Memcache server under Linux. The detailed method is as follows:

1. Download memcached and libevent respectively and put them in the /tmp directory: # cd /tmp# wget http://www.danga.com/memcached/dist/memcached- 1.2.0.tar.gz# wget http://www.monkey.org/~provos/libevent-1.2.tar.gz

2. Install libevent:# tar zxvf libevent-1.2.tar. Gz# cd libevent-1.2# ./configure –prefix=/usr# make# make install

3.Test if libevent is installed successfully: # ls -al /usr/lib

Copyright © Windows knowledge All Rights Reserved