<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 功能強大 支持多語言、二開方便! 廣告
                [TOC] > [阮一峰參考文檔](http://www.ruanyifeng.com/blog/2017/08/elasticsearch.html) > [docker 安裝(版本可選擇)](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html) ## 概述 - 需要 java8 環境 以 `REST API` 格式進行操作 快速地儲存、搜索和分析海量數據 ### Node 與 Cluster ``` Elastic 本質上是一個分布式數據庫,允許多臺服務器協同工作,每臺服務器可以運行多個 Elastic 實例。 單個 Elastic 實例稱為一個節點(node)。一組節點構成一個集群(cluster) ``` ### Index 可看做數據庫 `curl -X GET 'http://localhost:9200/_cat/indices?v'` ### Document Index 里面單條的記錄稱為 Document(文檔)。許多條 Document 構成了一個 Index。 就是一條記錄 ``` { "user": "張三", "title": "工程師", "desc": "數據庫管理" } ``` ### Type 根據規劃,Elastic 6.x 版只允許每個 Index 包含一個 Type,7.x 版將會徹底移除 Type。 ## 安裝 ``` $ wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.1.zip $ unzip elasticsearch-5.5.1.zip $ cd elasticsearch-5.5.1/ $ ./bin/elasticsearch ``` 測試 `curl localhost:9200` ``` { "name" : "atntrTf", "cluster_name" : "elasticsearch", "cluster_uuid" : "tf9250XhQ6ee4h7YI11anA", "version" : { "number" : "5.5.1", "build_hash" : "19c13d0", "build_date" : "2017-07-18T20:44:24.823Z", "build_snapshot" : false, "lucene_version" : "6.6.0" }, "tagline" : "You Know, for Search" } ``` ## 設置 ``` //集群名稱 cluster.name: elasticsearch_production //節點名稱 node.name: elasticsearch_005_data http.port:9200 network.host: 0.0.0.0 // 配置數據/日志/插件路徑 path.data: /path/to/data1,/path/to/data2 path.logs: /path/to/logs path.plugins: /path/to/plugins //允許可視化工具訪問 http.cors.enabled: true http.cors.allow-origin: "*" ``` ### 集成 > [集成](https://blog.csdn.net/zxc123e/article/details/79206526) 配置 主節點 ``` network.host: 0.0.0.0 http.cors.enabled: true http.cors.allow-origin: "*" cluster.name: idcpj_cluster node.name: idcpj_1 node.master: true ``` 子節點 ``` http.cors.enabled: true http.cors.allow-origin: "*" cluster.name: idcpj_cluster node.name: idcpj_2 node.master: false discovery.zen.ping.unicast.hosts: ["127.0.0.1"] ``` ## 問題 ### max file descriptors 4096 for elasticsearch process is too low 切換到root 用戶 ``` vim /etc/security/limits.conf * soft nofile 65536 * hard nofile 131072 * soft nproc 2048 * hard nproc 4096 ``` ### max virtual memory areas vm.maxmapcount [65530] is too low ``` sudo sysctl -w vm.max_map_count=26214 ``` ### system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own ris ``` bootstrap.memory_lock: false//修改此行 bootstrap.system_call_filter: false //添加此行 ```
                  <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>

                              哎呀哎呀视频在线观看