Install Memcached

Original Post: Digital Ocean

#sudo apt update

Next, install the official package as follows:

#sudo apt install memcached

You can also install libmemcached-tools, which is a package that contains various tools that you can use to examine, test, and manage your Memcached server. Add the package to your server with the following command:

#sudo apt install libmemcached-tools

Memcached should now be installed as a service on your server, along with tools that will allow you to test its connectivity.

To start Memcached, run the following systemctl command:

#sudo systemctl start memcached