<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      redis哨兵

      節(jié)點準備 、主從復制配置參考上篇博客

      一、從解壓的redis文件夾下拷貝sentinel.conf 哨兵文件至/opt/redis/conf里做公共配置文件

      cp sentinel.conf /opt/redis/conf/sentinel-public.conf

      二、配置公共文件

      # port 26379     注釋哨兵監(jiān)聽端口默認監(jiān)聽自己
      sentinel monitor mymaster 127.0.0.1 6379 2    指示sentinel去監(jiān)視一個名為master的主服務器,這個服務器的ip  port  而將這個服務器判斷為失效至少需要1個,一般設置為2個  (一般大于等于一半,7個填4,5個填3)
      sentinel auth-pass mymaster 123456 設置master和slaves的密碼
      sentinel down-after-milliseconds mymaster 30000 sentinel 認為服務器已經(jīng)短線的毫秒數(shù)默認30秒
      sentinel failover-timeout mymaster 180000 三分鐘內(nèi)未完成故障遷移即認為失敗
      protected-mode no 關閉保護模式
      daemonize yes 后臺運行


      #################################################

      三、創(chuàng)建三個sentinel配置文件

      touch sentinel-26379.conf
      touch sentinel-26380.conf
      touch sentinel-26381.conf

      四、配置文件

       # 引用公共文件
      include /opt/redis/conf/sentinel-public.conf
      # 進程端口號
      port 26379
      # 進程編號記錄文件
      pidfile /var/run/sentinel-26379.pid
      # 日志記錄文件
      logfile "/opt/redis/log/sentinel-26379.log"

      其余三個文件復制粘貼即可  記得改下端口   替換快捷命令    :%s/舊的/新的

      五、啟動哨兵

      /usr/local/bin/redis-sentinel /opt/redis/conf/sentinel-26379.conf 
      /usr/local/bin/redis-sentinel /opt/redis/conf/sentinel-26380.conf 
      /usr/local/bin/redis-sentinel /opt/redis/conf/sentinel-26381.conf 
      [root@iZbp18g9d6dss3gia7kersZ conf]# ps -ef | grep redis
      root      3354     1  0 18:49 ?        00:00:00 /usr/local/bin/redis-sentinel *:26379 [sentinel]
      root      3360     1  0 18:49 ?        00:00:00 /usr/local/bin/redis-sentinel *:26380 [sentinel]
      root      3366     1  0 18:49 ?        00:00:00 /usr/local/bin/redis-sentinel *:26381 [sentinel]
      root      3372 29683  0 18:49 pts/0    00:00:00 grep --color=auto redis
      root     31590     1  0 17:10 ?        00:00:05 /usr/local/bin/redis-server *:6379
      root     31637     1  0 17:10 ?        00:00:06 /usr/local/bin/redis-server *:6380
      root     31678     1  0 17:11 ?        00:00:06 /usr/local/bin/redis-server *:6381
      root     32051 31933  0 17:14 pts/1    00:00:00 redis-cli -p 6380
      root     32052 32013  0 17:14 pts/2    00:00:00 redis-cli -p 6381

      啟動成功

      六、驗證

      殺掉6379的主服務器 后發(fā)現(xiàn)6380自動切換為主服務器了  當6379重啟后   6379變成從服務器加入節(jié)點

       

      posted @ 2023-02-05 19:03  許光宗  閱讀(22)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 国产精品午夜福利精品| 亚洲一区二区三区| 人妻少妇久久中文字幕| 国产久免费热视频在线观看| 影音先锋在线资源无码| 国产麻豆成人传媒免费观看| 亚洲国产午夜福利精品| 色婷婷综合久久久久中文一区二区| 免费黄色大全一区二区三区| 秋霞A级毛片在线看| 狠狠色丁香婷婷综合| 人妻精品久久无码区| 国产精品SM捆绑调教视频| 全黄h全肉边做边吃奶视频| 中文字幕一区二区人妻电影| 欧美成人VA免费大片视频| 同江市| 国产在线中文字幕精品| 美女爽到高潮嗷嗷嗷叫免费网站| 磐石市| 激情综合五月网| 免费国产黄线在线观看| 中文字幕人妻不卡精品| 亚在线观看免费视频入口| 欧美国产综合视频| 九九热精品免费视频| 国产精品福利中文字幕| 久久久久久久无码高潮| 风流老熟女一区二区三区| 国内揄拍国产精品人妻电影| 天堂mv在线mv免费mv香蕉| 亚洲成在人天堂一区二区| 国产毛片三区二区一区| 亚洲AV成人片在线观看 | 国产精品免费中文字幕| 亚洲国产性夜夜综合| 99国产欧美另类久久久精品| 自拍偷自拍亚洲精品播放| 日本中文字幕不卡在线一区二区| 成人亚洲av免费在线| 国产精品成人自产拍在线|