memcached installation under CentOS

Source: Internet
Author: User
Tags memcached

The memcached is a high-speed, distributed memory cache system. Its official homepage in http://www.danga.com/memcached/
1. Pre-Installation Preparation
Libevent support is required to install the memcached.
CentOS through
Yum Install Libevent-devel
Installation can
Other versions can be obtained by installing the Libevent source file
2. Download and install the current version is memcached-1.2.6.tar.gz
Cd/usr/src
wget http://www.danga.com/memcached/dist/memcached-1.2.6.tar.gz
Tar xzf memcached-1.2.6.tar.gz
CD memcached-1.2.6
./configure--prefix=/usr/local/memcached
Make
Make install
3. Start
/usr/local/memcached/bin/memcached-d-M 512-l 127.0.0.1-p 11211-u Root
Indicates the way the daemon started, listening on the 11211 port of 127.0.0.1, using the root user, maximum use of 512M memory
You can open multiple memcached at the same time, but listen to different ports.
Note: If you do not have the-u root, you will be reported:
Can ' t run as root without the-u switch
FIX: With-u root on the line!

Memcached installation under CentOS

Related Article

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.