memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
grab your specific RPM and install it:
Now memcached is installed.
You can test it:
First, you start up the memcached daemon on as many spare machines as you have. The daemon has no configuration file, just a few command line options, only 3 or 4 of which you’ll likely use:
This starts memcached up as a daemon, using 2GB of memory, and listening on IPÂ 10.0.0.40, portÂ 11211. TheÂ -m switch specifies the amount of memory in megabytes. TheÂ -l switch specifies the IP to listen on and finally theÂ -p switch specifies the port to listen on. The default port isÂ 11211 and if your machine has just 1 IP you can omit theÂ -l parameter. In the above example I set the amount of memory to 2GB. Of course you should use a sensible amount of memory. Making your machine swap to disk sort of defeats the purpose of a memory cache daemon.
Installation of the PHP MemCache extension:
Copy the fileÂ memcache.so to the default module directory.
If you check yourÂ phpinfo() you should see a MemCache section appear.
You can now fully use the MemCache functionality in your PHP