Installing and configuring memcached

On August 19, 2011, in CentOS, by mike

Undoubtedly, memcached is the best caching system can be run distributed reaching extreme performance ( it uses libevent find).

As dependency to be used we will need: libevent, memcached and php-memcached PECL.

## Install PHP PECL Memcache and memcached-(Dependencies will be installed along with them)
yum install php-pecl-memcache memcached

## To Configure the memcached edit the file ‘/ etc / sysconfig / memcached “as follows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Memcached configuration file
# Port used
PORT=”11211″
# User daemon runs memcached
USER=”memcached”
# The maximum number of connections
MAXCONN=”1024″
# Size of memory that can be used
Cachesize=”512″
OPTIONS=”"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## Activate memcached to start at boot
chkconfig memcached on

## Start the daemon
memcached service home

Tagged with:  

Leave a Reply

Weboy

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Copyright © 2005-2010 Linux Server™. Use of this web site constitutes acceptance of the Linux Server™ Terms of Use and Privacy Policy. en-US Linux is a trademark registered by Linus Torvalds in the United States and other countries.