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:
The guide describes how to install Redis server in Ubuntu 20.04
Installation of PostgreSQL and phpPgAdmin on Ubuntu 18.04
Import MySQL database via SSH
Installing Inkscape on Ubuntu 22.04 and 20.04
gconf-service gconf-service-backend gconf2-common libappindicator1 libc++1 libc++1-9 libc++abi1-9 libdbusmenu-gtk4 libgail-common libgail18 libgconf-2-4 libgtk2.0-0 libgtk2.0-bin libgtk2.0-commonAll-in-one voice and text chat for gamers
All-in-one voice and text chat for gamers that's free 20.04





