Install the memcache server in Linux

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.