Installing Memcached on Debian 11
The following guide describes how to install Memcached on a Debian system 11.
We will complete it in a few minutes by following a few simple steps in the console.
<!–more–>
We start the terminal and install the memcached package
1 | apt-get install memcached libmemcached-tools -y |
1 | apt-get install python3-pymemcache libcache-memcached-libmemcached-perl -y |
Run it on your system:
1 | systemctl start memcached |
1 | systemctl enable memcached |
Check the status of services:
1 | systemctl status memcached |
Now we will do the configuration.
edit file:
1 | nano /etc/memcached.conf |
And we configure as follows:
1 2 3 4 5 | -l 127.0.0.1 -U 0 -p 11211 -u memcache -m 2000 |
We restart the service:
1 | systemctl restart memcached |
Memcached should now be available on php.info and should work fine on the server.