標籤:highlight 解決 nod pat pre sha disable targe port
一、elasticsearch單機環境搭建
注:elasticsearch對JDK版本這有嚴格的要求,一般建議安裝Java: openjdk version "1.8.0_xx"
配置Elasticsearch
tar -zxvf elasticsearch-5.2.2.tar.gzcd elasticsearch-5.2.2
編輯ES的設定檔,修改以下配置項:
cluster.name=es_clusternode.name=node0path.data=/tmp/elasticsearch/datapath.logs=/tmp/elasticsearch/logs#當前hostname或IPnetwork.host=XXXnetwork.port=9200
啟動ES:
./bin/elasticsearch 或nohup ./bin/elasticsearch &
開啟頁面IP:9200,將會看到以下內容:
或者使用命令:curl http://IP:9200來檢查部署是否成功
叢集安裝請參見:http://yedward.net/post/416.html
安裝過程中碰到的坑如下: http://blog.csdn.net/qq_21387171/article/details/53577115及http://www.dajiangtai.com/community/18136.do
另外在安裝5.2.2版本時碰到一個報錯及處理方式如下:
ERROR: bootstrap checks failedsystem call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
解決措施如下:在elasticsearch.yml中配置bootstrap.system_call_filter為false,注意要在Memory下面:
bootstrap.memory_lock: falsebootstrap.system_call_filter: false
可以查看issues:https://github.com/elastic/elasticsearch/issues/22899
二、kibana安裝
1、安裝準備
tar -zxvf kibana-5.2.2.tar.gz
2、配置kibana
server.port: 5601 #監聽的連接埠號碼server.host: "172.18.12.XX" #Kibana服務的IPelasticsearch.url: http://172.18.12.XX:9200 #es伺服器的http訪問路徑kibana.index: .kibana #kibana在es中的輔助索引名稱
3、啟動kibana
./bin/kibana
4、驗證kibana是否安裝成功
檢查http://IP:5601是否可以訪問
flume+elasticsearch+kibana遇到的坑