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.