Kategorie: DirectAdminLinux

Installation and security Memcached Ubuntu 18.04

The following article will describe how in a very simple way to install memcached in Ubuntu 18.04 and secure it to listen locally.
Installation is simple let's get started.

At the beginning of the update repository list command:

sudo apt update

The next step is to install the memcached and necessary packages:

sudo apt install memcached libmemcached-tools

Now we will protect it.

Centos 7
modify file

/etc/sysconfig/memcached

modifying:

OPTIONS=""

na

OPTIONS="-l 127.0.0.1 -The 0"

Debian/Ubuntu
Check to see if the file

/etc/memcached.conf 

It has content:

-l 127.0.0.1

If it does not, add it as follows, and if it is - we add only the tip:

-l 127.0.0.1 -The 0

Save and restart memcached.

What are these letters?

-l 127.0.0.1 He tells us that the memcached server to listen on only locally

-The 0 disables the UDP

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