How to set password for Redis master / slave (master/slave/sentinel)
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.