2

Docker 安装 ELK (ElasticSearch, Logstash, Kibana)

 2 years ago
source link: https://www.jansora.com/notes/551
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
点滴成河 灵光乍现 知识图谱 应用商店 主题色配置 登录 / 注册 微信 Github 豫ICP备17022883号 文章大纲
配置文件描述符
以 Docker-Compose 方式启动

Docker 安装 ELK (ElasticSearch, Logstash, Kibana)

安装 Docker 请参见 https://www.jansora.com/post/install-docker

镜像详情请参见 https://github.com/deviantony/docker-elk

镜像大小 2.3G, 最好用国内源下载

拉取 7.6.1 版本的ELK [[docker pull sebp/elk:761]]

配置文件描述符

配置原因请参考https://www.elastic.co/guide/cn/elasticsearch/guide/current/_file_descriptors_and_mmap.html

单次生效: [[sysctl -w vm.max_map_count=262144]] 永久生效: 修改/etc/sysctl.conf文件下的该设置

[[docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 sebp/elk:761]]

如果需要以 daemon 进程启动, 请指定 [[docker run -d -p 5601:5601 ...]]

以 Docker-Compose 方式启动

注意 yml 格式

创建docker-compose.yml并写入以下内容

elk:
 image: sebp/elk:761
 ports:
   - "5601:5601"
   - "9200:9200"
   - "5044:5044"

启动 [[docker-compose up -d --no-recreate ]]


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK