<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>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                這里將搭建擁有3個節點的集群。 <br/> 步驟如下: **1. 先按照【安裝Elasticsearch->Windows單機安裝】小節搭建一臺Elasticsearch服務器** **2. 復制3份安裝好的Elasticsearch到一個文件夾中** ![](https://img.kancloud.cn/5a/b8/5ab8deade0dd1917e33f4a0311d8f062_1345x191.png) **3. 分別在3個節點的 config/elasticsearch.yml 文件中編寫配置** (1)node-1001的 config/elasticsearch.yml。 ``` #集群名稱,節點之間要保持一致 cluster.name: my-elasticsearch #節點名稱,集群內要唯一 node.name: node-1001 node.master: true node.data: true #ip 地址 network.host: localhost #http 端口 http.port: 1001 #tcp 監聽端口 transport.tcp.port: 9301 #discovery.seed_hosts: ["localhost:9301", "localhost:9302","localhost:9303"] #discovery.zen.fd.ping_timeout: 1m #discovery.zen.fd.ping_retries: 5 #集群內的可以被選為主節點的節點列表 #cluster.initial_master_nodes: ["node-1", "node-2","node-3"] #跨域配置 #action.destructive_requires_name: true http.cors.enabled: true http.cors.allow-origin: "*" ``` (2)node-1002的 config/elasticsearch.yml。 ``` #集群名稱,節點之間要保持一致 cluster.name: my-elasticsearch #節點名稱,集群內要唯一 node.name: node-1002 node.master: true node.data: true #ip 地址 network.host: localhost #http 端口 http.port: 1002 #tcp 監聽端口 transport.tcp.port: 9302 discovery.seed_hosts: ["localhost:9301"] discovery.zen.fd.ping_timeout: 1m discovery.zen.fd.ping_retries: 5 #集群內的可以被選為主節點的節點列表 #cluster.initial_master_nodes: ["node-1", "node-2","node-3"] #跨域配置 #action.destructive_requires_name: true http.cors.enabled: true http.cors.allow-origin: "*" ``` (3)node-1003的 config/elasticsearch.yml。 ``` #集群名稱,節點之間要保持一致 cluster.name: my-elasticsearch #節點名稱,集群內要唯一 node.name: node-1003 node.master: true node.data: true #ip 地址 network.host: localhost #http 端口 http.port: 1003 #tcp 監聽端口 transport.tcp.port: 9303 #候選主節點的地址,在開啟服務后可以被選為主節點 discovery.seed_hosts: ["localhost:9301", "localhost:9302"] discovery.zen.fd.ping_timeout: 1m discovery.zen.fd.ping_retries: 5 #集群內的可以被選為主節點的節點列表 #cluster.initial_master_nodes: ["node-1", "node-2","node-3"] #跨域配置 #action.destructive_requires_name: true http.cors.enabled: true http.cors.allow-origin: "*" ``` **4. 刪除每個節點中 data 目錄下的所有文件(如果有的話)** ![](https://img.kancloud.cn/89/4c/894c342e9fbd7eda4ec0c0b5bdffa547_1320x144.png) **5. 分別雙擊每個節點的 bin/elasticsearch.bat 啟動每個節點** ![](https://img.kancloud.cn/82/46/8246433303885abb0e20d0e3ec73d2c4_1193x193.png) **6. 驗證是否搭建成功** 訪問 http://localhost:1001/_cat/nodes ,出現如下3個節點信息則搭建成功! ![](https://img.kancloud.cn/c1/99/c199ae272c70f7e62b0d2e9b76b91432_1380x237.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>

                              哎呀哎呀视频在线观看