Kategorie: Linux

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

dnf install memcached libmemcached -y

Run it on your system:

systemctl enable memcached --now

Check the status of services:

systemctl status memcached

Now we will do the configuration.

edit file:

nano /etc/sysconfig/memcached

We find the ruler:

OPTIONS="-l 127.0.0.1,::1"

And we change it to :

OPTIONS="-l application-server-ip,::1"

We restart the service:

systemctl restart memcached

If we use a firewall we add ports to the exceptions and reload it.

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:

dnf install php-pecl-memcached php-pecl-memcache -y

to Python:

pip install pymemcache
pip install python-memcached

Linux

Udostępnij
Opublikowane przez
Linux

Recent posts

KeePass2 2.52 w Ubuntu 22.04

The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń

2 years temu

Installing Master PDF editor in Ubuntu 22.04

Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji

2 years temu

iotop - memory monitoring

Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w

2 years temu

Run multiple commands in one cron job

You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania

2 years temu

Changing the exif data of a photo in the Linux terminal

Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.

2 years temu

Installing Rocket.Chat Server on Rocky Linux 8

The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy

2 years temu