Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to set password for Redis master / slave (master/slave/sentinel)

Shulou Source: shulou.com Published: 2022-06-03 03:12:19 09月22日 Update

How to add password authorization access mechanism to Redis master / slave version:

Premise: Redis master / standby version consists of master, slave and sentinel

Set passwords to enhance security mechanisms:

1.master node configuration file (.conf)

Slave node configuration file (.conf)

3.sentinel node configuration file (.conf)

Note: both master and slave need to configure the requirepass domain masterauth, which mainly prevents the slave node from being unable to connect to the master node after the master-slave switch occurs.

Tags: Node configuration file password mechanism security master-slave premise switch Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Apple Xiaomi Shulou Information Huawei