memcached Source Installation

Source: Internet
Author: User


memcached Source Installation

Download libevent:

wget https://cloud.github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz

Download memcached:
wget http://memcached.org/files/memcached-1.5.0.tar.gz

Installing Libevent
TAR-ZXVF libevent-2.0.21-stable.tar.gz
CD libevent-2.0.21-stable
./configure--prefix=/usr/local/src/libevent/
Make && make install

Install the memcached and require the installation location of the specified libevent in the installation
TAR-ZXVF memcached-1.5.0.tar.gz
CD memcached-1.5.0
./configure--with-libevent=/usr/local/src/libevent/--prefix=/usr/local/src/memcached
Make && make install


To start the server side of Memcache:
/usr/local/src/memcached/bin/memcached-d-M 2000-u root-p 12000-c 256-p./memcached.pid

The-D option is to start a daemon.
-M is the amount of memory allocated to Memcache, in megabytes.
-U is the user running memcache.
-L is the server IP address of the listener.
-P is the port that sets Memcache listening.
The-c option is the maximum number of concurrent connections to run, and the default is 1024.
-P is a PID file that is set to save Memcache, saved in/tmp/memcached.pid.
You can also start multiple daemons, but the ports cannot be duplicated.








This article is from "Linux operations-Small Ink" blog, please be sure to keep this source http://xmomo.blog.51cto.com/5994484/1970107

memcached Source Installation

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.