How to install Memcache on CentOS
|DIFFICULTY strong>||Basic - 1 | Medium - 2 | Advanced - 3 td>|
|TIME REQUIRED strong>||15-30+ min|
|RELATED PRODUCTS strong>||Linux-based VPS or dedicated servers|
This Article will show you how to install Memcache on CentOS
Before installing Memcache, you need to install it's dependencies first, you can use yum to install libevent.
Now that the dependencies are in place, you can install memcache.
We want to make sure we are working from the src directory as the root user during this install.
Then, wget the latest version of memcache from your selected source, in this example with will use googlecode.com
Now we need to unpack the tar file and switch to the working directory you just created.
Now we need to configure the Makefile. You must have compiling tools on your server to accomplish this, if you don't you can install gcc and make using yum.
yum install make
Now configure your Makefile. The preferred method is below:
After that complete, you can now start compiling memcache:
Finally, start the daemon in the background
There you go, you have successfully installed memcache and have it running in the background