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/ root-m 32m

Memcached-d-P 12000-p/opt/memcached/ root-m 32m

Memcached-d-P 13000-p/opt/memcached/ 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

Beyond APAC's No.1 Cloud

19.6% IaaS Market Share in Asia Pacific - Gartner IT Service report, 2018

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.