ElasticSearchNote

Summary: Author: 张亚飞 | 阅读时间: 2 minute read | Published: 2018-03-24
Filed under Categories: LinuxTags: Note,

ElasticSearch 相关链接


ElasticSearch 安装部署

/opt/data/elk

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.2.zip
unzip elasticsearch-6.4.2.zip
mv elasticsearch-6.4.2 elasticsearch
cd elasticsearch

配置文件

/opt/data/elk/elasticsearch/config

elasticsearch.keystore  elasticsearch.yml  jvm.options  log4j2.properties  role_mapping.yml  roles.yml  users  users_roles

启动

/opt/data/elk/elasticsearch

./bin/elasticsearch

调整系统文件配置 /etc/security/limits.conf

# End of file
root soft nofile 65535
root hard nofile 65535
* soft nofile 65535
* hard nofile 65535

改为

# End of file
root soft nofile 65536
root hard nofile 65536
* soft nofile 65536
* hard nofile 65536

退出用户重新登录,使配置生效

# ulimit -n 65536

Logstash 安装部署

/opt/data/elk

wget https://artifacts.elastic.co/downloads/logstash/logstash-6.4.2.zip
unzip logstash-6.4.2.zip
mv logstash-6.4.2 logstash
cd logstash

配置文件

/opt/data/elk/logstash/config

jvm.options  log4j2.properties  logstash-sample.conf  logstash.yml  pipelines.yml  startup.options

启动

/opt/data/elk/logstash

./bin/logstash

FileBeats 安装部署

/opt/data/elk

wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.4.2-linux-x86_64.tar.gz
tar -zxvf filebeat-6.4.2-linux-x86_64.tar.gz
mv filebeat-6.4.2-linux-x86_64.tar.gz filebeat
cd filebeat

配置文件

/opt/data/elk/filebeat/config

fields.yml filebeat.reference.yml filebeat.yml

启动

/opt/data/elk/filebeat

./filebeat

Kibana 安装部署

/opt/data/elk

wget https://artifacts.elastic.co/downloads/kibana/kibana-6.4.2-linux-x86_64.tar.gz
tar -zxvf kibana-6.4.2-linux-x86_64.tar.gz
mv kibana-6.4.2-linux-x86_64.tar.gz kibana
cd kibana

配置文件

/opt/data/elk/kibana/config

kibana.yml

启动服务

/opt/data/elk/kibana

./bin/kibana

Kibana 管理后台


Comments

Cor-Ethan, the beverage → www.iirii.com