Installation of Memcached in the CentOS system 8
The following guide describes how to install Memcached on a CentOS system 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 |
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 |
We find the ruler:
1 | OPTIONS="-l 127.0.0.1,::1" |
And we change it to :
1 | OPTIONS="-l application-server-ip,::1" |
We restart the service:
1 | systemctl restart memcached |
If we use a firewall we add ports to the exceptions and reload it.
1 2 3 4 | firewall-cmd --zone=public --add-port=11211/udp --permanent firewall-cmd --zone=public --add-port=11211/tcp --permanent firewall-cmd --zone=public --add-source=application-server-ip/32 --permanent firewall-cmd --reload |
If we want to add extensions to php we execute the following commands:
1 | dnf install php-pecl-memcached php-pecl-memcache -y |
to Python:
1 2 | pip install pymemcache pip install python-memcached |
Related entries:
Installation panel Webmin system Debian9
Conversion Magento admin password from the database
Ncdu friendly listing of directory occupancy
iftop - monitoring network connections in real time
LibreOffice is a powerful office suite and the successor to OpenOffice 5.24 sudo apt install kubuntu-desktop 21.10