How To Install Memcached on Ubuntu 16.04
Memcached works to reinforce performance by keeping a duplicate of normally used script components among the server’s memory in an exceedingly kind that’s a lot of simply scan by the server therefore reducing time. A bonus feature of this object cacher is its ability to decrease the quantity of connections to your info. During this tutorial, we tend to instruct a way to install Memcached, however it’s necessary to notice that once exploitation Memcache in Associate in Nursing application, the appliance should be specially coded or organized to store and retrieve knowledge this cached knowledge.
Installation of Memcached
Following best practices, we will do a quick package update by using the following command:
Install the Memcached daemon using
Install the Memcache module for PHP fuctionality:
Verify installation of Memcached
Use the php -m flag to show compiled modules while sorting through specifically looking for memcached.
At some point, you may find that you need to change the default settings of Memcached. These include adjusting the port number, memory for your cache, and the listening IP address.
Adjust these configurations by keeping the same flags (-m, -p, -u, -l), adjusting the letter or number after the flag and save the file by typing:
Restart your Memcached service to recognize the changes to this file: