Use yum to quickly install memcached in CentOS

Source: Internet
Author: User
1. search for Memcachedyumsearchmemcached. First, check whether memcached exists in the yum software repository. if any, directly go to Step 1 to install memcached. Otherwise, go to step 2. 2. the third-party software library (optional) standard CentOS5 software warehouse does not contain the corresponding memcache packages. Therefore, our first step is to import the third-party software warehouse. Here we recommend RpmFo 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.