美文网首页
elk docker 随笔

elk docker 随笔

作者: 码农笔录 | 来源:发表于2018-08-23 18:16 被阅读129次

elasticsearch

docker run -dit -v "$PWD/esdata":/usr/share/elasticsearch/data -p 9200:9200 -p 9300:9300 docker.io/elasticsearch:alpine
docker run -dit -v "/root/esdocker/esdata":/usr/share/elasticsearch/data -p 9200:9200 -p 9300:9300 docker.io/elasticsearch:alpine

logstash

docker run -dit --name logstash -v /opt/access.log:/opt/access.log registry.cn-hangzhou.aliyuncs.com/yasaka/logstash

zookeeper

//docker run --restart always -d -p 2181:2181 zookeeper
docker run -d --name zookeeper --publish 2181:2181 zookeeper:latest

kafka

docker run -d --name kafka --publish 9092:9092 --link zookeeper --env KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 --env KAFKA_ADVERTISED_HOST_NAME=192.168.33.130 --env KAFKA_ADVERTISED_PORT=9092 wurstmeister/kafka:latest

相关文章

网友评论

      本文标题:elk docker 随笔

      本文链接:https://www.haomeiwen.com/subject/izvmiftx.html