<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國際加速解決方案。 廣告
                <blockquote class="success">elasticsearch-head</blockquote> ``` elasticsearch-head是一款專門針對于elasticsearch的客戶端工具 ``` ### 一、安裝前準備 [1、centos7安裝git](http://www.cnblogs.com/subendong/p/7667443.html) [2、centos7安裝nodejs](http://www.cnblogs.com/subendong/p/7667496.html) >sudo yum install nodejs ### 二、elasticsearch-head安裝 ``` 1、使用git拷貝elasticsearch-head到本地 cd /usr/local/ git clone git://github.com/mobz/elasticsearch-head.git 或者 unzip elasticsearch-head-master.zip -d /usr/local/elasticsearch-head/ 2、安裝elasticsearch-head依賴包 cd /usr/local/elasticsearch-head/ npm install 3、修改Gruntfile.js cd /usr/local/elasticsearch-head/ vim Gruntfile.js 在connect-->server-->options下面添加:hostname:’*’,允許所有IP可以訪問 ``` ![](http://cloud.ryloo.icu/48db8ed362c243b790f0ffb0a91ca3ef) ``` 4、修改elasticsearch-head默認連接地址 cd /usr/local/elasticsearch-head/_site/ vim app.js 將this.base_uri = this.config.base_uri || this.prefs.get("app-base_uri") || "http://localhost:9200";中的localhost修改成你es的服務器地址 5、配置elasticsearch允許跨域訪問 進入elasticsearch服務器,打開elasticsearch的配置文件elasticsearch.yml,在文件末尾追加下面兩行代碼即可: http.cors.enabled: true http.cors.allow-origin: "*" 6、打開9100端口 如果想在別的機器上訪問,防火墻必須開啟9100端口,永久打開9100端口 firewall-cmd --zone=public --add-port=9100/tcp --permanent firewall-cmd --reload 7、 啟動elasticsearch-head cd /usr/local/elasticsearch-head/ node_modules/grunt/bin/grunt server 8、后臺啟動 cd /usr/local/elasticsearch-head/ nohup npm run start >/usr/local/elasticsearch-head/nohup.out 2>&1 & 9、啟動、停止 head 查看 9100 (head 端口)端口: lsof -i:9100 殺死進程: kill -9 pid 添加到開啟自啟: chmod +x elasticsearch-head # 賦予權限 chkconfig --add elasticsearch-head 測試: service elasticsearch-head start Ok,查看進程: ``` ![](http://cloud.ryloo.icu/ec859cfdee493f4b02158a11ddd4a98d) ![](http://cloud.ryloo.icu/db9f69aaf79e808ee6545705b326dba9)
                  <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>

                              哎呀哎呀视频在线观看