生活随笔
收集整理的這篇文章主要介紹了
ELK学习4_Elasticsearch+Logstash+Kibana安装_简易版
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
ELK安裝
?
下載地址:
Elastic相關(guān)組件下載總地址:
https://www.elastic.co/downloads
?
ES下載地址:
https://www.elastic.co/downloads/elasticsearch
?
Elastic?Search1.4.1下載地址:
https://www.elastic.co/downloads/past-releases/elasticsearch-1-4-1
?
Logstash下載地址:
https://www.elastic.co/downloads/logstash
?
Kibana下載地址:
https://www.elastic.co/downloads/kibana
?
直接下載,或用U盤將下載好的壓縮包拷貝到CentOS系統(tǒng)下,拷貝的地點是/home/Hadoop
?
ES安裝:
解壓安裝:
[html]?view plaincopy
[hadoop@Master?~]$?su?? Password:??? [root@Master?hadoop]#?tar?-zxvf?elasticsearch-1.7.3.tar.gz?-C?/usr/local/?? [root@Master?hadoop]#?cd?/usr/local/?? [root@Master?local]#?mv?elasticsearch-1.7.3?elasticsearch??
備注:
Elasticsearch1.7.3版本要求JDK1.8以上的版本,因為在前面安裝JDK時,安裝的版本是
1.7.51(1.7.55以上版本可以使用),所以安裝過程中會出現(xiàn)一些問題。
有兩種解決方法,一種是更新JDK,一種是選擇低版本的ES。
最終,為了節(jié)省時間,在虛擬機上進行操作時,選擇的是用低版本ES。
?
具體操作如下:
[html]?view plaincopy
[root@Master?hadoop]#?cd?/usr/local/?? [root@Master?local]#?cd?elasticsearch-1.4.1/?? [root@Master?elasticsearch-1.4.1]#?bin/elasticsearch?? [2015-10-22?20:30:50,826][INFO?][node?????????????????????]?[Cottonmouth]?version[1.4.1],?pid[101153],?build[89d3241/2014-11-26T15:49:29Z]?? [2015-10-22?20:30:50,826][INFO?][node?????????????????????]?[Cottonmouth]?initializing?...?? [2015-10-22?20:30:50,830][INFO?][plugins??????????????????]?[Cottonmouth]?loaded?[],?sites?[]?? [2015-10-22?20:30:57,257][INFO?][node?????????????????????]?[Cottonmouth]?initialized?? [2015-10-22?20:30:57,257][INFO?][node?????????????????????]?[Cottonmouth]?starting?...?? [2015-10-22?20:30:57,851][INFO?][transport????????????????]?[Cottonmouth]?bound_address?{inet[/0:0:0:0:0:0:0:0:9300]},?publish_address?{inet[/192.168.154.156:9300]}?? [2015-10-22?20:30:57,985][INFO?][discovery????????????????]?[Cottonmouth]?elasticsearch/zS02Jbi4S6yIUGHXomLOGg?? [2015-10-22?20:31:01,803][INFO?][cluster.service??????????]?[Cottonmouth]?new_master?[Cottonmouth][zS02Jbi4S6yIUGHXomLOGg][Master][inet[/192.168.154.156:9300]],?reason:?zen-disco-join?(elected_as_master)?? [2015-10-22?20:31:01,838][INFO?][http?????????????????????]?[Cottonmouth]?bound_address?{inet[/0:0:0:0:0:0:0:0:9200]},?publish_address?{inet[/192.168.154.156:9200]}?? [2015-10-22?20:31:01,838][INFO?][node?????????????????????]?[Cottonmouth]?started?? [2015-10-22?20:31:01,847][INFO?][gateway??????????????????]?[Cottonmouth]?recovered?[0]?indices?into?cluster_state??
另外打開一個終端,進行檢測:
[html]?view plaincopy
[hadoop@Master?~]$?curl?-X?GET?http://localhost:9200/?? {?? ??"status"?:?200,?? ??"name"?:?"Catiana",?? ??"cluster_name"?:?"elasticsearch",?? ??"version"?:?{?? ????"number"?:?"1.4.1",?? ????"build_hash"?:?"89d3241d670db65f994242c8e8383b169779e2d4",?? ????"build_timestamp"?:?"2014-11-26T15:49:29Z",?? ????"build_snapshot"?:?false,?? ????"lucene_version"?:?"4.10.2"?? ??},?? ??"tagline"?:?"You?Know,?for?Search"?? }?? [hadoop@Master?~]$???
Logstash安裝:
解壓安裝:
[html]?view plaincopy
[hadoop@Master?~]$?su?? Password:??? [root@Master?hadoop]#?tar?-zxvf?logstash-1.5.4.tar.gz?-C?/usr/local/?? [root@Master?hadoop]#?cd?/usr/local/?? [root@Master?local]#?mv?logstash-1.5.4?logstash??
?
logstash下載即可使用,命令行參數(shù)可以參考logstash?flags,主要有:
agent???#運行Agent模式
-f?CONFIGFILE?#指定配置文件
web?????#自動Web服務(wù)
-p?PORT?#指定端口,默認9292
?
Kibana安裝:
解壓安裝:
[html]?view plaincopy
[hadoop@Master?~]$?su?? Password:??? [root@Master?hadoop]#?tar?-zxvf?kibana-4.1.2-linux-x64.tar.gz?-C?/usr/local?? [root@Master?hadoop]#?cd?/usr/local/?? [root@Master?local]#?mv?kibana-4.1.2-linux-x64?kibana?? [root@Master?local]#???
?
來源:http://blog.csdn.net/wang_zhenwei/article/details/49361373
總結(jié)
以上是生活随笔為你收集整理的ELK学习4_Elasticsearch+Logstash+Kibana安装_简易版的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。