Memcached on Ubuntu 18.10
Requirements: user with root privileges or non-root user with sudo privileges.
$ sudo apt update && sudo apt upgrade -y
$ sudo apt install memcached libmemcached-tools -y
$ systemctl status memcached
$ sudo systemctl enable memcached
Once the installation has been completed, edit /etc/memcached.conf and set:
[...]
# Default connection port is 11211
-p 11211
[...]
# Specify which IP address to listen on
-l 192.168.1.182
[...]
#Define the maximum number of memory can be used by Memcached deamon
-m 256
[...]
Save and close the file then restart memcached service for the changes to apply:
$ sudo systemctl restart memcached.service
$ sudo systemctl status memcached.service
Memcached is now installed and configured. Next, you will need to install and configure php-memcached to use Memcached with Apache and PHP.