How to install memcached

Post Reply
gautham
Posts: 14
Joined: Sun Jul 01, 2012 10:32 am

How to install memcached

Post 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
Gautham G
WebhostingDevelopment.com
a24uall
Site Admin
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

Re: How to install memcached

Post 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
Arun
WebhostingDevelopment.com
Post Reply

Return to “Caching Techniques”