Redis on installing multiple virtual machines, in redis.conf configuration file, make the following changes
protected-mode no (yes changed to no)
If you are starting on a virtual machine multiple redis service, then I'm in / etc under redis.conf copy and rename redis6380.conf
In the configuration,
1.pidfile "/var/run/redis6380.conf"
2.port 6380
3.logfile "6380.log"
4.dbfilename "dump6380.rdb"
5.protected-mode no
Start redis: redis-server /etc/redis6380.conf
Client Access: redis-cli -p 6380 -h host ip
Setting a master node: in a client port number slaveof host ip
Adding Sentinel mode, in / etc add a sentinel.conf, which is written
protected-mode no
sentinel monitor (the monitor's name, here mymaster) master node ip port number (the number of voting standard, here 2)
Note Firewall
Write springboot configuration
#redis configuration
spring.redis.sentinel.master = mymaster
spring.redis.sentinel.nodes = (Sentinel host ip): 26379