memcached Installation and use

Source: Internet
Author: User
Keywords memcached Use tutorials memcached installation
Tags .gz cluster deployment install installation it is it is necessary root source
memcached installation and cluster deployment

SOURCE Package: libevent-1.4.14b-stable.tar.gz memcached-1.4.29.tar.gz

libevent Installation

Memcached is dependent on the asynchronous time-time notification library so it needs to be installed first libevent

[Root@bogon ~]# tar-xf/src/libevent-1.4.14b-stable.tar.gz-c/usr/src/
[Root@bogon ~]# cd/usr/src/libevent-1.4.14b-stable/
[Root@bogon libevent-1.4.14b-stable]#./configure--prefix=/usr/&& make && make install

memcached Installation

[Root@bogon ~]# tar-xf/src/memcached-1.4.29.tar.gz-c/usr/src/

[Root@bogon ~]# cd/usr/src/memcached-1.4.29/
[Root@bogon memcached-1.4.29]#./configure--with-libevent=/usr/&& make && make install

memcached boot (because we want to do is memcached cluster so start three processes, memcached can start multiple processes, as long as the specified different ports, different PID files, the three memcached process is a cluster)

Memcached-d-P 11000-p/opt/memcached/memcached1.pid-u root-m 32m

Memcached-d-P 12000-p/opt/memcached/memcached2.pid-u root-m 32m

Memcached-d-P 13000-p/opt/memcached/memcached3.pid-u root-m 32m

-D runs memcached in daemon (daemon) mode.

-M sets the amount of memory that memcached can use, in M.

-L Sets the IP address of the listener, which is usually not specified if it is native.

-P Sets the listening port, the default is 11211, so you can also not set this parameter.

-P is to set the PID file to save Memcache

-u Specifies the user, and you need to specify the user using this parameter if you are currently root.

-F Sets the growth factor (used when tuning).

-V/-VV detailed display of various parameters during work.




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.