<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                一:主從配置(redis-server redis.windows.conf指定配置文件啟動) master 配置文件:redis-6379.conf ~~~ port 6379 daemonize yes logfile "6379.log" dbfilename "dump-6379.rdb" dir "/opt/soft/redis/data" ~~~ slave-1 配置文件:redis-6380.conf ~~~shell port 6380 daemonize yes logfile "6380.log" dbfilename "dump-6380.rdb" dir "/opt/soft/redis/data" # 關鍵配置:將這個 redis 指定為某個第一個 redis 的 slaver slaveof 127.0.0.1 6379 slave-read-only yes(只讀) ~~~ ![](https://img.kancloud.cn/23/41/2341407448bbb3d31a99d5d844a0c5b0_974x473.png) 二:哨兵配置 主配置文件sentinel-26379.conf ~~~ #設置 sentinel 工作端口 port 26379 #后臺運行 daemonize yes #日志文件名稱 logfile "26379.log" #設置當前 sentinel 監控的 redis ip 和 端口 sentinel monitor mymaster 127.0.0.1 6379 2 #設置判斷 redis 節點宕機時間 sentinel down-after-milliseconds mymaster 60000 #設置自動故障轉移超時 sentinel failover-timeout mymaster 180000 #設置同時故障轉移個數 sentinel parallel-syncs mymaster 1 ~~~ 從配置文件sentinel-26380.conf ~~~ #設置 sentinel 工作端口 port 26380 #后臺運行 daemonize yes #日志文件名稱 logfile "26380.log" #設置當前 sentinel 監控的 redis ip 和 端口 sentinel monitor mymaster 127.0.0.1 6379 2 #設置判斷 redis 節點宕機時間 sentinel down-after-milliseconds mymaster 60000 #設置自動故障轉移超時 sentinel failover-timeout mymaster 180000 #設置同時故障轉移個數 sentinel parallel-syncs mymaster 1 ~~~ 啟動 sentinel 有兩種方式 1. `redis-sentinel /path/to/sentinel.conf` 2. `redis-server /path/to/sentinel.conf --sentinel` ![](https://img.kancloud.cn/2a/53/2a5395656d257956043a603885dcce60_1073x285.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看