#install memcached
yum install memcached
yum install perl-Cache-Memcached
yum install python-memcached
yum install libmemcached service memcached start
nano /etc/sysconfig/memcached #set this line like this # Set Memory size to 2048 - 4GB(4096)
CACHESIZE="8192" #Set server IP address
OPTIONS="-l 127.0.0.1"   #command line
chkconfig --levels 235 memcached on
/etc/init.d/memcached start
/etc/init.d/memcached restart service memcached start