You are here

Memcached on CENTOS 6

Okay, thought it was hard but it is pretty easy

yum install memcached

nano /etc/sysconfig/memcached
and make sure the following (tweak as you see fit)
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="512"
OPTIONS="-l 127.0.0.1"

Now save

Then start up memcache using
service memcache start

Then let memcache automatically startup on boot
chkconfig memcache on

Now install php support
yum install pecl
yum install php-pecl-memcached

GOOD LUCK!

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.