Logo

How To Install Memcached on Ubuntu 24.04

Mar 20, 2024

To install Memcached on Ubuntu 24.04, follow the steps below.

Step 1 : Update your package index:

sudo apt update

Step 2 : Install Memcached and associated libraries:

sudo apt install memcached libmemcached-tools

Step 3 : Check Memcached status:

sudo systemctl status memcached

Step 4 : Edit the configuration file /etc/memcached.conf (e.g., change localhost and port):

sudo nano /etc/memcached.conf

Step 5 : Restart Memcached service:

sudo systemctl restart memcached

Step 6 : Test Memcached using memcstat:

memcstat --servers=localhost

Congratulations! You have successfully installed and configured Memcached on Ubuntu 24.04.

Recommended