久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      Centos7.3服務(wù)器下elasticsearch5.5安裝方法

      Centos7.3服務(wù)器下elasticsearch5.5安裝方法。

      第一步:必須要有jre支持

      elasticsearch是用Java實(shí)現(xiàn)的,跑elasticsearch必須要有jre支持,所以必須先安裝jre

      可以參考 我前面的教程

      第二步:下載elasticsearch

      進(jìn)入官方下載https://www.elastic.co/downloads/elasticsearch

      因?yàn)槭莄entos中運(yùn)行 所以我們選 tar.gz壓縮包;

      下載后上傳到/developer/setup下

      Centos7.3服務(wù)器下elasticsearch5.5安裝方法

      第三步:配置elasticsearch

      解壓

      Centos7.3服務(wù)器下elasticsearch5.5安裝方法

      剪切文件到/developer目錄

      Centos7.3服務(wù)器下elasticsearch5.5安裝方法

      啟動(dòng)elasticsearch

      Centos7.3服務(wù)器下elasticsearch5.5安裝方法

      由于elasticsearch5.0默認(rèn)分配jvm空間大小為2g,修改jvm空間分配

      [root@iZwz92t5qpn97tcgtdd9y3Z developer]# cd elasticsearch-5.5.2/

      [root@iZwz92t5qpn97tcgtdd9y3Z elasticsearch-5.5.2]# cd config

      [root@iZwz92t5qpn97tcgtdd9y3Z config]# vim jvm.options

      修改為Centos7.3服務(wù)器下elasticsearch5.5安裝方法

      再次啟動(dòng)出現(xiàn)

      Centos7.3服務(wù)器下elasticsearch5.5安裝方法

      意思是不能用root用戶來(lái)啟動(dòng),那我們新建一個(gè)用戶來(lái)啟動(dòng)

      [root@bogon ~]# useradd elastic

      [root@bogon ~]# chown -R elastic:elastic /home/es/elasticsearch-5.5.2/

      新建elastic用戶 并且把目錄權(quán)限賦予給elastic

      我們切換成elastic用戶,然后執(zhí)行

      [root@bogon ~]# su elastic

      [elastic@bogon root]$ sh /home/es/elasticsearch-5.5.2/bin/elasticsearch

      最后啟動(dòng)可以我們可以驗(yàn)證 curlhttp://localhost:9200

      [elastic@bogon root]$ curl http://localhost:9200

      {

      "name" : "K22mJd5",

      "cluster_name" : "elasticsearch",

      "cluster_uuid" : "R2qfXKtrQl2PwKdJMmPuMA",

      "version" : {

      "number" : "5.5.2",

      "build_hash" : "b2f0c09",

      "build_date" : "2017-08-14T12:33:14.154Z",

      "build_snapshot" : false,

      "lucene_version" : "6.6.0"

      },

      "tagline" : "You Know, for Search"

      }

      出來(lái)這個(gè) 說(shuō)明配置OK。

      第四步:允許外網(wǎng)連接配置

      前面我們配置的僅僅是本機(jī)使用 但是我們比如集群以及其他機(jī)器連接 ,則需要配置下。

      可以修改 /developer/elasticsearch/config/elasticsearch.yml 文件

      network.host: 0.0.0.0

      http.port: 9200

      修改后 保存退出

      再啟動(dòng)下elasticsearch

      我們用谷歌瀏覽器請(qǐng)求下http://192.168.1.108:9200/

      Centos7.3服務(wù)器下elasticsearch5.5安裝方法

      OK 出現(xiàn)這東西 才算配置完成;

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)