成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

Redis怎么自動(dòng)發(fā)現(xiàn)集群命令的缺陷

redis怎么自動(dòng)發(fā)現(xiàn)集群命令的缺陷,很多新手對(duì)此不是很清楚,為了幫助大家解決這個(gè)難題,下面小編將為大家詳細(xì)講解,有這方面需求的人可以來學(xué)習(xí)下,希望你能有所收獲。

創(chuàng)新互聯(lián)是一家專注于成都網(wǎng)站建設(shè)、成都做網(wǎng)站與策劃設(shè)計(jì),雷山網(wǎng)站建設(shè)哪家好?創(chuàng)新互聯(lián)做網(wǎng)站,專注于網(wǎng)站建設(shè)十載,網(wǎng)設(shè)計(jì)領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:雷山等地區(qū)。雷山做網(wǎng)站價(jià)格咨詢:028-86922220

redis 3.0.3 與 4.0.2 版本在使用 cluster slots 命令時(shí)的差異:

3.0.3 版本返回(不論是否 bind ip)
:7001> cluster slots
1) 1) (integer) 0
   2) (integer) 4095
   3) 1) "127.0.0.1"
      2) (integer) 7000
   4) 1) "127.0.0.1"
      2) (integer) 7004
2) 1) (integer) 12288
   2) (integer) 16383
   3) 1) "127.0.0.1"
      2) (integer) 7003
   4) 1) "127.0.0.1"
      2) (integer) 7007
3) 1) (integer) 4096
   2) (integer) 8191
   3) 1) "127.0.0.1"
      2) (integer) 7001
   4) 1) "127.0.0.1"
      2) (integer) 7005
4) 1) (integer) 8192
   2) (integer) 12287
   3) 1) "127.0.0.1"
      2) (integer) 7002
   4) 1) "127.0.0.1"
      2) (integer) 7006
4.0.2 版本返回(當(dāng)bind ip時(shí))
192.168.1.132:7000> cluster slots
1) 1) (integer) 10923
   2) (integer) 16383
   3) 1) "192.168.1.132"
      2) (integer) 7005
      3) "3e20546717c40b5d8513601d05fd924ce38c07ce"
   4) 1) "192.168.1.132"
      2) (integer) 7002
      3) "eec0d41ed22c527fae7b1e1179ffa18a55c7ecc1"
2) 1) (integer) 5572
   2) (integer) 10922
   3) 1) "192.168.1.132"
      2) (integer) 7001
      3) "22e2357417c90689966f66c813c8141591087b1a"
   4) 1) "192.168.1.132"
      2) (integer) 7004
      3) "49ee26df943831f9e0ad4d67fd7a7c7472c9876c"
3) 1) (integer) 0
   2) (integer) 5571
   3) 1) "192.168.1.132"
      2) (integer) 7003
      3) "cc8c6fde5bd9a80a1aefb71dc6bae4bf9a119cac"
   4) 1) "127.0.0.1"
      2) (integer) 7000
      3) "6cf873bc9f7c3efcfd8f9110d8fc1c2285bb423f"

不bind ip時(shí),默認(rèn)返回 127.0.0.1

使用場景

Jedis 客戶端會(huì)通過此命令進(jìn)行集群發(fā)現(xiàn)。所以建議使用時(shí):

  1. 升級(jí) redis 版本至 4.0.2 或以上(其他版本需要測試);

  2. bind 內(nèi)網(wǎng)ip;

  3. 啟用密碼

常用命令
# 設(shè)置密碼
 config set masterauth "123456"
 config set requirepass "123456"
 auth "123456"
 config rewrite
 # 客戶端
./redis-cli -h 192.168.1.132 -p 7000 -a 123456

看完上述內(nèi)容是否對(duì)您有幫助呢?如果還想對(duì)相關(guān)知識(shí)有進(jìn)一步的了解或閱讀更多相關(guān)文章,請(qǐng)關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,感謝您對(duì)創(chuàng)新互聯(lián)的支持。

名稱欄目:Redis怎么自動(dòng)發(fā)現(xiàn)集群命令的缺陷
瀏覽路徑:http://jinyejixie.com/article40/jogheo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供微信公眾號(hào)、動(dòng)態(tài)網(wǎng)站、定制開發(fā)、企業(yè)建站、營銷型網(wǎng)站建設(shè)、標(biāo)簽優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都app開發(fā)公司
云阳县| 汉源县| 赤水市| 长岛县| 宾阳县| 安多县| 临澧县| 界首市| 通榆县| 海淀区| 台湾省| 台湾省| 红安县| 铁力市| 晴隆县| 南安市| 浦江县| 洛隆县| 岳西县| 大竹县| 江都市| 碌曲县| 禹城市| 萨嘎县| 二连浩特市| 甘肃省| 嘉定区| 桃江县| 革吉县| 香河县| 永丰县| 闸北区| 逊克县| 涞水县| 东丰县| 怀安县| 民丰县| 乐业县| 威海市| 高碑店市| 阿鲁科尔沁旗|