How does docker deploy elk?

coldplay.xixi
Release: 2020-07-28 10:35:24
Original
2866 people have browsed it

How to deploy elk with docker: first download and use the elk integrated image; then start it; finally access it, the code is [[root@centos-mq ~]# sysctl -p
] Enter in the browser: [ http://10.10.0.13:5601] That’s it.

How does docker deploy elk?

How to deploy elk with docker:

1. Download the image

Here we use elk Integrated image, address: https://hub.docker.com/r/sebp/elk/tags

[root@centos-mq ~]# docker pull sebp/elk:660
Copy after login

Note: 660 is elk version

2, start

[root@centos-mq ~]# echo "vm.max_map_count=262144" > /etc/sysctl.conf
[root@centos-mq ~]# sysctl -p
[root@centos-mq ~]# docker run -dit --name elk \
    -p 5601:5601 \
    -p 9200:9200 \
    -p 5044:5044 \
    -v /opt/elk-data:/var/lib/elasticsearch \
    -v /etc/localtime:/etc/localtime \
    sebp/elk:660
Copy after login

Description: -p Specify the mapping port, 5601kibana access, 9200es port, 5044 logstash collection log port; -v Specify es data directory

3. Access

After startup, wait for data initialization, enter the browser: http://10.10.0.13:5601, you can see the kibana web interface

Recommended related tutorials: docker tutorial

The above is the detailed content of How does docker deploy elk?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template