docker 安装elk
1、先安docker
2、docker pull docker.elastic.co/elasticsearch/elasticsearch:7.10.0 docker pull elasticsearch
3、docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.10.0& docker run elastic
参考
4、sed -i '$avm.max_map_count=262144' /etc/sysctl.conf
5、docker pull docker.elastic.co/kibana/kibana:7.10.0
6、docker run --link 8d2d8b17f0d8:elasticsearch -p 5601:5601 docker.elastic.co/kibana/kibana:7.10.0& docker run kibana
参考 https://www.elastic.co/guide/en/kibana/current/docker.html
7、docker pull docker.elastic.co/logstash/logstash:7.10.0
https://www.elastic.co/guide/en/logstash/current/docker.html
8、docker run \
docker.elastic.co/beats/filebeat:7.10.0 \
setup -E setup.kibana.host=192.168.0.203:5601 \
-E output.elasticsearch.hosts=["192.168.0.203:9200"]
阅读(1012) | 评论(0) | 转发(0) |