采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
telnet 192.168.1.5 26379 连接正常,info也显示正常。 telnet 192.168.1.5 7000 连接正常,命令执行成功。 但在Idea中就是连不上
redis-7000.conf的配置:
port 7000
daemonize yes
pidfile /var/run/redis-7000.pid
logfile "7000.log"
dir "/opt/soft/redis/data/"
protected-mode no
redis-sentinel-26379.conf中的配置:
port 26379
pidfile "/var/run/redis-sentinel-26379.pid"
logfile "26379.log"
dir "/opt/soft/redis-5.0.7/data"
sentinel myid e33841952e939bc3584d932bcc9fdb83979f55e6
sentinel deny-scripts-reconfig yes
sentinel monitor mymaster 127.0.0.1 7000 2
sentinel config-epoch mymaster 0
sentinel leader-epoch mymaster 0
# Generated by CONFIG REWRITE
sentinel known-replica mymaster 127.0.0.1 7002
sentinel known-replica mymaster 127.0.0.1 7001
sentinel current-epoch 0
~
# Sentinel sentinel_masters:1 sentinel_tilt:0 sentinel_running_scripts:0 sentinel_scripts_queue_length:0 sentinel_simulate_failure_flags:0 master0:name=mymaster,status=ok,address=127.0.0.1:7000,slaves=2,sentinels=1
登录后可查看更多问答,登录/注册
Redis课程升级!系统梳理Redis知识体系,掌握redis必备!
1.2k 1
1.2k 2
960 12
2.1k 9
853 6