mac 安裝es+kibana

mac 單機安裝es和kibana

下載es
https://www.elastic.co/cn/downloads/elasticsearch
1.下載es版本
2.解壓es包
    tar -zxvf elasticsearch-7.5.1-darwin-x86_64.tar.gz
3.修改配置文件 elasticsearch.yml
    cluster.name: my-application #集羣的名稱
    node.name: node-1 #節點的名稱
    network.host: 127.0.0.1
    
    #在配置文件末尾增加:
    #配置 elasticsearch 允許跨域訪問
    http.cors.enabled: true
    http.cors.allow-origin: "*"
4.啓動es
    nohup ./bin/elasticsearch &
5.查看啓動是否成功
    訪問127.0.0.1:9200
    結果是如下,則啓動成功:
    {
      "name" : "node-1",
      "cluster_name" : "my-application",
      "cluster_uuid" : "e8HAEo1-QDGFOcKrhL6FyQ",
      "version" : {
        "number" : "7.5.1",
        "build_flavor" : "default",
        "build_type" : "tar",
        "build_hash" : "3ae9ac9a93c95bd0cdc054951cf95d88e1e18d96",
        "build_date" : "2019-12-16T22:57:37.835892Z",
        "build_snapshot" : false,
        "lucene_version" : "8.3.0",
        "minimum_wire_compatibility_version" : "6.8.0",
        "minimum_index_compatibility_version" : "6.0.0-beta1"
      },
      "tagline" : "You Know, for Search"
    }

下載對應版本kibana:
https://www.elastic.co/cn/downloads/kibana
1.下載安裝包
2.解壓安裝包
    tar -zxvf kibana-7.5.1-darwin-x86_64.tar.gz
3.修改配置文件 kibana.yml (版本不同,配置文件不同)
    server.port: 5601
    server.host: "127.0.0.1"
    elasticsearch.hosts: ["http://127.0.0.1:9200"]
4.啓動kibana
    nohup ./bin/kibana &
5.查看啓動是否成功
     訪問127.0.0.1:5601
    能打開界面證明安裝成功

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章