码迷,mamicode.com
首页 > 其他好文 > 详细

ELK Centos Redhat yum 安装

时间:2018-08-22 18:30:07      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:nod   ldd   name   over   pool   hostname   var   elk   refresh   

cat >/etc/yum.repos.d/es.repo<<eof
[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
eof
yum install elasticsearch kibana

cat >/etc/elasticsearch/elasticsearch.yml<<eof
cluster.name: cn-log
node.name: ${HOSTNAME}
node.master: true
node.data: true
node.ingest: false
node.ml: false
node.max_local_storage_nodes: 1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: site
http.port: 9200
http.cors.enabled: true
http.cors.allow-origin: ""
transport.tcp.port: 9300
discovery.zen.ping.unicast.hosts: ["172.20.3.17","172.20.3.18","172.20.3.19"]
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping_timeout: "5s"
action.destructive_requires_name: true
action.auto_create_index: true
indices.recovery.max_bytes_per_sec: "1024m"
cluster.routing.allocation.node_concurrent_incoming_recoveries: 30
cluster.routing.allocation.node_concurrent_outgoing_recoveries: 30
cluster.routing.allocation.node_initial_primaries_recoveries: 30
cluster.routing.allocation.cluster_concurrent_rebalance: 30
indices.queries.cache.size: 10%
indices.fielddata.cache.size: 20%
indices.breaker.fielddata.limit: 60%
indices.breaker.request.limit: 40%
indices.breaker.total.limit: 70%
xpack.ml.enabled: false
xpack.security.enabled: false
xpack.watcher.enabled: false
xpack.monitoring.exporters.my_local:
type: local
use_ingest: false
thread_pool.index.queue_size: 7000
thread_pool.bulk.queue_size: 7000
reindex.remote.whitelist: ["10.2.
.:9200", "172.19..:9200", "172.120..*:9200"]
path.repo: ["/esbackup"]
eof

cat >/etc/kibana/kibana.yml<<eof
server.host: "0.0.0.0"
elasticsearch.url: "http://172.20.3.19:9200"
eof

systemctl start kibana elasticsearch

ELK Centos Redhat yum 安装

标签:nod   ldd   name   over   pool   hostname   var   elk   refresh   

原文地址:http://blog.51cto.com/2183087/2162898

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!