1. Change the password of redis: Note that both must be modified
>>config set requirepass password
>>auth password
>>config get masterauth
2. Change the password of redis sentinel
>>info
>>sentinel set master-name auth-pass password
Check whether the sentinel configuration information password is written
echo "masterauth password" >> redis.conf
4. Check the redis status
redis-cli -p redis-port -a password info replication Check the master-slave replication of redis
The above is the detailed content of How redis implements online encryption. For more information, please follow other related articles on the PHP Chinese website!