Page 1 of 1

How to install memcached

Posted: Wed Aug 22, 2012 10:59 am
by gautham
Download memcached from main site
cd /usr/local/src/

Code: Select all

wget http://memcached.googlecode.com/files/memcached-1.4.14.tar.gz
tar -xzvf memcached-1.*
cd memcached*
./configure
make
If the above gives an error on libevent, check if its installed and if not install that using
yum install libevent libevent-devel
make install
To run that you can execute
memcached -d -u nobody -m 1024 127.0.0.1 -p 11211

Re: How to install memcached

Posted: Thu Sep 18, 2014 11:30 am
by a24uall
Easy option to install memcached in cPanel servers and centos 6 and higher.

Open port 11211 in firewall.

Code: Select all

yum install memcached
 

Code: Select all

pecl install memcache

Code: Select all

service memcached start

Code: Select all

chkconfig memcached on