Use yum to quickly install memcached in CentOS

Source: Internet
Author: User

Use yum to quickly install memcached in CentOS
1. Find Memcached

Yum search memcached

First, check whether memcached exists in the yum software warehouse. If there is any memcached, directly go to step 1 for installation. Otherwise, perform step 2.

2. Install a third-party software library (optional)

There is no memcache package in the standard CentOS5 software warehouse. Therefore, our first step is to import the package to a third-party software warehouse, here we recommend RpmForge (the RpmForge library now has more than 10000 CentOS software packages and is considered as the safest and most stable third-party software library by the CentOS community). The installation method is as follows:

Wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.5.2-2.rf.src.rpm
Rpm-ivh rpmforge-release-0.5.2-2.rf.src.rpm

3. Install Memcached

Yum-y install memcached

4. Verify Installation

Memcached-h

/Etc/rc. d/init. d/memcached status

5. view the configuration file

Cat/etc/sysconfig/memcached

You can modify the configuration parameters as needed:

PORT = "11211" USER = "memcached" MAXCONN = "1024" CACHESIZE = "64" OPTIONS = ""

6. Start memcached

/Etc/rc. d/init. d/memcached start

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.