參考地址:https://www.elastic.co/guide/en/elasticsearch/reference/2.4/_installation.htmlhtml
vim /opt/elasticsearch-2.4.1/config/elasticsearch.yml
#(此配置文件中,開頭不能有空格,冒號後面要空一格) cluster.name: shunyou-elasticsearch #(集羣中這個名字要一致) node.name: node-1 #(集羣中,這個節點名每一個節點名稱惟一) network.host: 192.168.0.1 #(綁定當前ip) discovery.zen.ping.unicast.hosts: ["host1", "host2"] #(配置集羣中的主節點有哪些) discovery.zen.minimum_master_nodes: 2 #(配置集羣中最小主節點數量[(total number of nodes / 2 + 1)]) discovery.zen.ping_timeout: 30s #(配置集羣中主節點被選舉或加入超時時間,更高的值確保更少的失敗機會)
瀏覽器訪問節點:node
http://192.168.0.204:9200/linux
http://192.168.0.204:9200/_plugin/head/git
- 從GitHub上下載:https://github.com/medcl/elasticsearch-analysis-ik/archive/v1.10.1.zip
- 利用maven進行mvn clean package後獲得 (若是你的es版本是2.4.1,就不用走下面步驟了,本人已經編譯打包好的文件,地址:https://raw.githubusercontent.com/hollowj/elasticsearch-analysis-ik/master/elasticsearch-analysis-ik-1.10.1.zip)
- ./target/releases/elasticsearch-analysis-ik-1.10.1.zip
- 打開elasticsearch根目錄:
- mkdir ./plugins/ik/
- 解壓maven編譯好的zip包到ik目錄下
https://download.elasticsearch.org/elasticsearch/marvel/marvel-2.4.1.tar.gzruby
參考地址:https://www.elastic.co/guide/en/logstash/2.4/installing-logstash.htmlbash
vim /opt/kibana-4.6.3-linux-x86_64/config/kibana.ymlelasticsearch.url: "http://192.168.0.1:9200" 訪問集羣中任一節點