<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國際加速解決方案。 廣告
                ## 安裝node 使用 node 安裝 elasticdump 非常方便。 node 官網:傳送門 https://nodejs.org/en 下載版本:node-v12.14.0-linux-x64.tar.gz 安裝環境:centos7.9 ### 創建nodejs文件夾 ``` cd /usr/local mkdir nodejs ``` ### 解壓文件 ``` tar -xzvf node-v12.14.0-linux-x64.tar.gz ``` ### 移動nodejs文件 ``` mv node-v12.14.0-linux-x64/* /usr/local/nodejs ``` ### 建立軟鏈接 此時的bin文件夾中已經存在node以及npm,如果你進入到對應文件的中執行命令行一點問題都沒有,不過不是全局的,所以通過建立軟鏈接的方式將這個設置為全局。 ``` ln -s /usr/local/nodejs/bin/node /usr/local/bin ``` ``` ln -s /usr/local/nodejs/bin/npm /usr/local/bin ``` ### 測試node ``` [root@ncayu8847 data]# node -v v12.14.0 [root@ncayu8847 data]# npm -v 6.13.4 ``` ## 安裝打包工具 npm-pack-all ``` npm install -g npm-pack-all ``` 打包步驟 * 找到項目中node-modules; * 在node-modules中找到需要打離線包的依賴包; * 在上述的依賴包中找到node-modules; * 在終端中打開這個node-modules并執行npm-pack-all; * 在文件夾中打開執行npm-pack-all的路徑,可以在當前或者下一級看到tgz包。 ## 安裝elasticdump ``` npm install elasticdump -g ``` ``` [root@ncayu8847 data]# npm install elasticdump -g npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated s3signed@0.1.0: This module is no longer maintained. It is provided as is. /usr/local/nodejs/bin/multielasticdump -> /usr/local/nodejs/lib/node_modules/elasticdump/bin/multielasticdump /usr/local/nodejs/bin/elasticdump -> /usr/local/nodejs/lib/node_modules/elasticdump/bin/elasticdump + elasticdump@6.103.0 added 128 packages from 200 contributors in 58.933s [root@ncayu8847 data]# ``` ### 打包elasticdump 進入到elasticdump安裝目錄 ``` cd /usr/local/nodejs/lib/node_modules/elasticdump/ ``` 執行 npm-pack-all 當前目錄生成 elasticdump-6.82.0.tgz ``` /usr/local/nodejs/lib/node_modules/npm-pack-all/index.js ``` ### npm 離線安裝esdump ``` npm install elasticdump-6.84.1.tgz ``` ### 確認安裝成功 elasticdump創建軟連接 ``` ln -s /usr/local/nodejs/lib/node_modules/elasticdump/bin/elasticdump /usr/local/bin ``` ``` elasticdump --help ``` ## elasticdump備份ES數據庫 遷移Setting和Mapping等 ``` elasticdump \ --input=http://192.168.1.1:9200/my_index \ --output=http://192.168.3.2:9200/my_index \ --type=analyzer elasticdump \ --input=http://192.168.1.1:9200/my_index \ --output=http://192.168.3.2:9200/my_index \ --type=settings elasticdump \ --input=http://192.168.1.1:9200/my_index \ --output=http://192.168.3.2:9200/my_index \ --type=mapping ``` 遷移數據 ``` elasticdump \ --input=http://192.168.1.1:9200/my_index \ --output=http://192.168.3.2:9200/my_index \ --type=data ``` ### 示例 ``` elasticdump \ --input='http://elastic:password@192.168.1.1:9200/my_index' \ --output=/data/my_index_mapping.json \ --type=mapping elasticdump \ --input='http://elastic:password@192.168.1.1:9200/my_index' \ --output=/data/my_index_index.json \ --type=data ```
                  <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>

                              哎呀哎呀视频在线观看