Telegram- 👇 😉
-
. WIKIMERIONET
Merion Mertics , ,

CRM

3

Redis , , . , , , , , . . Redis Redis Sentinel Redis Redis Cluster.

Redis CentOS 8. Redis .

   Redis  CentOS 8

Redis CentOS 8

Redis 5.0.x CentOS 8. root sudo ( sudo )

sudo dnf install redis-server

Redis:

sudo systemctl enable --now redis

, Redis, :

sudo systemctl status redis

:

? redis.service - Redis persistent key-value database
   Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/redis.service.d
           L-limit.conf
   Active: active (running) since Sat 2020-02-08 20:54:46 UTC; 7s ago

! Redis CentOS 8.


Redis

Redis . Redis 127.0.0.1 (localhost) - , Redis.

, , , , .

Redis , Redis :

sudo nano /etc/redis.conf

, bind 127.0.0.1, IP- 127.0.0.1.

bind 127.0.0.1 192.168.1.10

, 192.168.1.10 IP-. . , Redis , .

Redis, :

sudo systemctl restart redis

ss, , Redis 6379:

ss -an | grep 6379

- :

tcp    LISTEN    0    128    192.168.1.10:6379    	0.0.0.0:*
tcp    LISTEN    0    128    127.0.0.1:6379          0.0.0.0:*

TCP- 6379.

Redis IP- IP-. ,

192.168.2.0/24

, :

sudo firewall-cmd --new-zone=redis permanent
sudo firewall-cmd --zone=redis --add-port=6379/tcp permanent
sudo firewall-cmd --zone=redis --add-source=192.168.2.0/24 permanent
sudo firewall-cmd --reload

redis, 6379 . Redis TCP 6379.

, IP-. , , Redis , redis-cli, Redis:

redis-cli -h  ping

PONG:

PONG

, , !