Basic steps:
1. Download the compressed file (wget file URL)
2. Unzip (TAR-ZXVF file name)
3, configure (./configure--prefix= installation directory)
4. Make compile (if step 3 is not a problem, otherwise go to step 1)
5, make install installation (after installation, remember CD to the installation directory to see if the file is generated)
6. Clear the Temporary files and configuration files generated during installation (make clean & make Distclean)
The following are all the commands that are used during the installation process
[Email protected] ~]# mkdir test
[[Email protected] ~]# CD test
[Email protected] test]# wget http://www.memcached.org/files/memcached-1.4.24.tar.gz
[Email protected] test]# TAR-ZXVF memcached-1.4.24.tar.gz
[Email protected] test]# mkdir memcached
[Email protected] test]# mkdir libevent
[Email protected] test]# wget https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz
[Email protected] test]# TAR-ZXVF libevent-1.4.14b-stable.tar.gz
[Email protected] test]# CD libevent-1.4.14b-stable
< Span style= "font-size:18px" > [[email protected] libevent-1.4.14b-stable ] #./configure--prefix=/root/test/libevent
< Span style= "font-size:18px" > [[ema il protected] libevent-1.4.14b-stable ]# make
< Span style= "font-size:18px" > < Span style= "font-size:18px" >[[EMAIL&NBSP;PROTECTED]&NBSP; ]# make install
< Span style= "font-size:18px" > < Span style= "font-size:18px" >[[EMAIL&NBSP;PROTECTED]&NBSP; libevent-1.4.14b-stable ]# CD. /memcached-1.4.24
< Span style= "font-size:18px" > < Span style= "font-size:18px" >[[email protected] memcached-1.4.24 ]#./configure-- prefix=/root/test/memcached--with-libevent=/root/test/libevent
< Span style= "font-size:18px" > < Span style= "font-size:18px" > [[email protected] memcached-1.4.24 ]# make
< Span style= "font-size:18px" > < Span style= "font-size:18px" > [[email protected] memcached-1.4.24 ]# make install
< Span style= "font-size:18px" > < Span style= "font-size:18px" > [[email protected] memcached-1.4.24 ]# CD. /memcached
< Span style= "font-size:18px" > < Span style= "font-size:18px" > [[ema il protected] memcached ]# ll
< Span style= "font-size:18px" > < Span style= "font-size:18px" >
/span>
To this visible memcached directory files, that is, installation is successful, note that before installing memcached need to libevent, both versions to be consistent, I created a temporary directory for testing, the actual installation process may specify the directory as/root/local/ Memcached, it's best to specify your own directory for easy management
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Linux Source Installation memcached