您的位置:首页 > 运维架构 > Linux

CentOS 7.3下Elast b9d4 icsearch 2.4.1+Kibana 4.6.6+Logstash 2.4.1及插件安装配置

2017-09-30 15:10 871 查看
Elasticsearch 2.4.1
下载地址
https://www.elastic.co/downloads/past-releases/elasticsearch-2-4-1
https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.1/elasticsearch-2.4.1.tar.gz
要求:
1 不能以ROOT身份运行,所以需要新建一个用户
adduser 新用户名
passwd 新用户名
2 因为不能以ROOT身份运行,所以需要更改文件夹权限
sudo chown -R elasticsearch新用户名
3 /elasticsearch/config/elasitcsearch.yml配置
cluster.name: 集群名
node.name: 节点名
network.host: 0.0.0.0 #设置非本机访问
http.port: 9200 #端口号 默认9200
4 运行
./elasticsearch
5 后台运行
./elasticsearch -d

Kibana 4.6.6
https://www.elastic.co/downloads/past-releases/kibana-4-6-6
https://download.elastic.co/kibana/kibana/kibana-4.6.6-linux-x86_64.tar.gz
配置/kibana/config/kibana.yml
elasticsearch.url: "http://localhost:9200" #修改为你的elasticsearch的地址和端口
elasticsearch.username: "es_admin" #安装shield插件需要开启这个验证
elasticsearch.password: "安装shield时候设置的密码" #安装shield插件需要开启这个验证

Logstash 2.4.1
https://www.elastic.co/downloads/past-releases/logstash-2-4-1
https://download.elastic.co/logstash/logstash/logstash-2.4.1.tar.gz
在bin目录下新建一个logstash.conf,并输入下列内容
input { stdin { } }output { elasticsearch { hosts => ["localhost:9200"] } stdout { codec => rubydebug }}
然后运行./logstash -f logstash.conf

Marvel
https://www.elastic.co/downloads/marvel
安装
./elasticsearch/bin/plugin install license
./elasticsearch/bin/plugin install marvel-agent
./kibana/bin/kibana plugin --install elasticsearch/marvel/latest

Shield
https://www.elastic.co/downloads/shield
安装
./elasticsearch/bin/plugin install license
./elasticsearch/bin/plugin install shield
./elasticsearch/bin/shield/esusers useradd es_admin -r admin

Sense
安装
https://www.elastic.co/guide/en/elasticsearch/guide/2.x/running-elasticsearch.html#sense
./kibana/bin/kibana plugin --install elastic/sense
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: