Installing Memcached

Memcached is a general-purpose distributed in-memory object caching system, which is often used to speed up and optimize back-end dynamic database performance. It does this by temporarily storing data and objects in the servers RAM/memory (like rendering a popular WordPress page on your blog). This reduces the number of direct requests to your databases, saving it time and resources. This also prepares you for any Slashdot effects that could hit your website.

Memcached Setup
Memcached Setup

Because systems like Memcached can contribute to denial of service attacks (DoS attack) if not set up correctly, it is essential to secure your Memcached servers. So keep the settings local, or harden your server after setup.

Ubuntu setup

In terminal, over SSH, enter these commands:

apt-get update
apt-get install memcached libmemcached-tools
systemctl start memcached
systemctl enable memcached
apt-get install php-memcached
service apache2 restart
Isaac Adams-Hands

Full Stack Developer, Digital Marketer, and InfoSec enthusiast. He received his Bachelor’s Degree from the University of Western Sydney and his Business Diploma from Georgian College before joining various marketing positions in search portals, e-commerce, higher education, and addiction recovery services.

Follow @ twitter

Related posts

[How-to] Host a static website on a AWS S3 bucket

As you may already know, Amazon offers the best cloud services through an initiative called Amazon Web Services (or simply Amazon AWS). Among the available services are some that, when combined, allow the hosting of websites to be effortless and with a relatively low (and scalable) cost. One such service is called Simple Storage Service… Read More

Remove a repository in source list using terminal

List You can remove the repository from the sources list using terminal. Find First you need to find your lists: sudo ls /etc/apt/sources.list.d Command Look for your desire PPA here and then remove the PPA using the following command: sudo rm -i /etc/apt/sources.list.d/PPA_Name.list