The following guide describes how to install Memcached on Alma Linux 8
The following guide describes how to install Memcached on Alma Linux 8.
We will complete it in a few minutes by following a few simple steps in the console.
We start the terminal and install the memcached package
1 | dnf install memcached libmemcached -y |
The following guide describes how to install Memcached on Alma Linux
1 | dnf install php-pecl-memcache php-pecl-memcached -y |
Run it on your system:
1 | systemctl enable memcached --now |
Check the status of services:
1 | systemctl status memcached |
Now we will do the configuration.
edit file:
1 | nano /etc/sysconfig/memcached |
And we configure as follows:
1 2 3 4 5 | PORT="11211" USER="memcached" MAXCONN="1024" CACHESIZE="64" OPTIONS="-l 127.0.0.1,::1" |
We restart the service:
1 | systemctl restart memcached |
The following guide describes how to install Memcached on Alma Linux:
1 | firewall-cmd --add-port=11211/tcp --zone=public --permanent |
1 | firewall-cmd --add-port=80/tcp --zone=public --permanent |
And we reload:
1 | firewall-cmd --reload |