Redhat Linux Installation memcached

Source: Internet
Author: User

First, the environment

1. Operating system: Redhat Linux 5.5

2, libevent:libevent-2.0.21-stable.tar.gz

Memcached:memcached-1.4.21.tar.gz

Second, installation

1, because memcached relies on libevent, it is necessary to install Libevent first.

2, the source installation, enter the directory where the installation package, execute the following command:

TAR-ZXVF libevent-2.0.21-stable.tar.gz

Unzip the installation package, then go to the extracted directory and execute the installation command:

./configure--prefix/usr/local/libevent/make Cleanmakemake Install

3, install memcached, execute command:

TAR-ZXVF memcached-1.4.21.tar.gz./configure--prefix/usr/local/memcached/--with-libevent=/usr/local/libevent/ Make Cleanmakemake Install

Note the second command because Memcached relies on libevent, so with the--with-libevent parameter, specify the path where the libevent is located.

Otherwise, an error occurs when you execute the./configure command.

Third, testing

1. Start the memcached daemon process

Enter the memcached installation directory and execute the memcached command:

cd/usr/local/memcached/bin./memcached-d-U Root

You can execute the memcached-h command to view the specific parameter description.

2. Connect using Telnet

telnet localhost 11211stats
If the connection is successful and the statistics appear, the installation succeeds.



Redhat Linux Installation memcached

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.