Install Memcache in Linux

Source: Internet
Author: User
Install Memcache in Linux-Linux Enterprise Application-Linux server application information. For details, refer to the following section. 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 first:
# Tar zxvf libevent-1.2.tar.gz
# Cd libevent-1.2
#./Configure? Prefix =/usr
# Make
# Make install

3. test whether the libevent is successfully installed:
# Ls-al/usr/lib | grep libevent
Lrwxrwxrwx 1 root 21 11 ?? Libevent-1.2.so.1> libevent-1.2.so.1.0.3
-Rwxr-xr-x 1 root 263546 11 ?? Libevent-1.2.so.1.0.3
-Rw-r? R? 1 root 454156 11 ?? 12 libevent.
-Rwxr-xr-x 1 root 811 11 ?? Libevent. la
Lrwxrwxrwx 1 root 21 11 ?? 12 libevent. so-> libevent-1.2.so.1.0.3

Not bad. They all have been installed.

4. Install memcached and specify the libevent installation location during installation:
# Cd/tmp
# Tar zxvf memcached-1.2.0.tar.gz
# Cd memcached-1.2.0
#./Configure? With-libevent =/usr
# Make
# Make install

If an error is reported in the middle, check the error information carefully and configure or add the corresponding library or path according to the error information.

After the installation is complete, the memcached will be placed in/usr/local/bin/memcached,

5. Test whether memcached is successfully installed:
# Ls-al/usr/local/bin/mem *
-Rwxr-xr-x 1 root 137986 11 ?? 12 :39/usr/local/bin/memcached
-Rwxr-xr-x 1 root 140179 11 ?? 12 :39/usr/local/bin/memcached-debug

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.