Install memcached on CentOS 5 and 6

→ Are you a new visitor? Please visit the page guidance for new visitors ←

Install memcached on CentOS 5 and 6

Yesterday I had to install memcached on a VPS server for a client which, what he said, was especially needed for his application. For those who don’t know, memcached is a high performance distributed memory object caching system, like its name, it is using your ram memory, speeding up dinamic web applications by reducing the database workload.

I will try to explain for both CentOS 5 and 6 here, so follow the steps carefully.

  • Installing memcached on your server first

For CentOS 5.X i386 / i686 please import and install the follow yum repo:

For CentOS 5.X x86_64 please import and install the follow yum repo:

For CentOS 6.X i386 / i686 please import and install the follow yum repo:

For CentOS 6.X x86_64 please import and install the follow yum repo:

Then install memcached using yum:

The settings for this software can be found here /etc/sysconfig/memcached

After making changes to this file save it and you’re done.

Then you just need start the service running:

And that is all, you now need to install php memcached extension which will be another article now.

Request an article ←