注: Elasticsearch Kibana 的下載地址統一爲https://www.elastic.co/downloads/
需要相應的安裝軟件可以加本人微信:WJT1356973472(戰神)
一:安裝Elasticsearch
下載elasticsearch-2.0.0.tar.gz,執行tar -zxvf elasticsearch-2.0.0.tar.gz解壓
進入目錄,修改配置文件config/elasticsearch.yml 【xx.yml格式:注意頂格,有空格】
如果要配置集羣需要兩個節點上的elasticsearch配置的cluster.name相同,都啓動可以自動組成集羣,這裏如果不改cluster.name則默認是cluster.name=elasticsearch,nodename隨意取但是集羣內的各節點不能相同
啓動:不能用root來啓動
[root@tong config]# ../bin/elasticsearch
Exception in thread "main"java.lang.RuntimeException: don't run elasticsearch asroot.
用普通用戶啓動:tong
注意:因爲elasticsearch有遠程執行腳本的功能所以容易中***病毒,所以不允許用root用戶啓動,root用戶是起不來的,賦權限,用一般的用戶啓動
[root@tongelasticsearch-2.2.0]# chown -R tong:tong ../
再次啓動[tong@tongelasticsearch-2.2.0]$ bin/elasticsearch 啓動時就定格在那,不動了
瀏覽器訪問:http://IP:9200
http://120.24.222.65:9200/_cluster/health?preth 看單機(集羣)的狀態
二:安裝Kibana
解壓安裝,修改配置文件vi config/kibana.yml的elasticsearch.url屬性即可
三:安裝Marvel
[root@tong elasticsearch-2.2.0]#
bin/plugin install license
bin/plugin installmarvel-agent
[root@tong kibana-4.4.1-linux-x64]#上傳marvel裏的文件到installedPlugins/marvel/ 需要軟件,請加微信,見開頭
bin/kibana plugin --install elasticsearch/marvel/latest(不用)
[root@tong elasticsearch-2.2.0]#bin/elasticsearch(還是普通用戶tong啓動) 先
[root@tong kibana-4.4.1-linux-x64]#bin/kibana 後
瀏覽器:http://IP:5601
到此安裝就結束了,謝謝!!