1. Download The memcached installation package
Wget http://www.danga.com/memcached/dist/memcached-1.2.2.tar.gz
Install the memcache installation package
Tar xvzf memcached-1.2.2.tar.gz Decompression
CD memcached-1.2.2 into Directory
./Configure-with-libevent =/usr set the environment
Make Compilation
Make install Installation
Ls-Al/usr/local/bin/MEM *.
[Root @ bogon ~] # Ls-Al/usr/local/bin/MEM *
-Rwxr-XR-x 1 Root 105602 Mar 13/usr/local/bin/memcached
-Rwxr-XR-x 1 Root 112133 Mar 13/usr/local/bin/memcached-Debug
2. Download The libevent installation package
Wget http://www.monkey.org /~ Provos/libevent-1.3.tar.gz
Install the libevent installation package
Tar xvzf libevent-1.3.tar.gz
CD libevent-1.3
./Configure-Prefix =/usr
Make
Make install
Ls-Al/usr/lib | grep libevent this is used to confirm whether the libevent is successfully installed. If the following prompt is displayed, it indicates that the installation is OK.
Ls-Al/usr/lib | grep libevent
Lrwxrwxrwx 1 Root 21 mar 13 libevent-1.3.so.1-> libevent-1.3.so.1.0.3
-Rwxr-XR-x 1 Root 221674 Mar 13 libevent-1.3.so.1.0.3
-RW-r -- 1 Root 289192 Mar 13 libevent.
-Rwxr-XR-x 1 Root 805 Mar 13 libevent. La
Lrwxrwxrwx 1 Root 21 mar 13 libevent. So-> libevent-1.3.so.1.0.3
3. Download The memcached installation package
Wget http://pecl.php.net/get/memcache-2.2.6.tgz
Tar xzvf memcache-2.2.6.tgz Decompression
CD memcache-2.2.6
/Usr/bin/phpize: Execute the phpize command. If this file does not exist in the directory, find (find/-name 'phpize') and find the corresponding location.