Docker一键安装ELK

3 篇文章 0 订阅
2 篇文章 0 订阅

                                  Docker一键安装ELK

一、安装环境

[root@ZhiNeng~]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)

[root@ZhiNeng~]# uname  -r
3.10.0-862.14.4.el7.x86_64

二、安装docker

   https://docs.docker.com/install/linux/docker-ce/centos/

[root@ZhiNeng~]# curl -fsSL https://get.docker.com -o get-docker.sh
[root@ZhiNeng~]# sh get-docker.sh
[root@ZhiNeng~]# systemctl   start   docker  #开启
[root@ZhiNeng~]# systemctl   enable  docker  #自启动

PS:Docker 中国官方镜像加速网址:https://www.docker-cn.com/registry-mirror

      【转载】用国内地址一键安装docker  https://blog.csdn.net/Dante_003/article/details/70208908

 三、安装ELK

  1. ELK镜像运行vm.max_map_count至少需要262144内存

[root@ZhiNeng~]# cat /etc/sysctl.conf
vm.max_map_count=262144   #加文末
[root@ZhiNeng~]# sysctl -p   #验证

  2. 搜索镜像

[root@ZhiNeng~]# docker  search   elk
NAME                                   DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
sebp/elk                               Collect, search and visualise log data with …   829                                     [OK]
qnib/elk                               Dockerfile providing ELK services (Elasticse…   109                                     [OK]
willdurand/elk                         Creating an ELK stack could not be easier.      96                                      [OK]
sebp/elkx                              Collect, search and visualise log data with …   32                                      [OK]
elkozmon/zoonavigator-web              Web client for ZooNavigator, web-based brows…   9
elkarbackup/elkarbackup                ElkarBackup is a free open-source backup sol…   8                                       [OK]
grubykarol/elk-docker                  elk docker image (derived from spujadas/elk-…   6                                       [OK]
elkozmon/zoonavigator-api              API for ZooNavigator, web-based browser/edit…   5
cdrocker/elk5                          Elasticsearch 5, Kibana 5 and Logstash 5 on …   4                                       [OK]
dockercisco/elklat                     Docker ELK stack for Nexus                      3
salgat/elk-cors                        ELK stack with CORS enabled for ElasticSearc…   1                                       [OK]
scality/elk                                                                            1
portbase/elk-filebeat                  elk-filebeat                                    1
codechimporg/unraid-dockers-elk        ELK stack for docker on unraid                  0                                       [OK]
portbase/elk-logstash                  elk-logstash                                    0
portbase/elk-elasticsearch             elk-elasticsearch                               0
eternaltyro/elk-aws-discovery          Collect, search and visualize log data with …   0                                       [OK]
portbase/elk-inbox_processor           elk-inbox_processor                             0
portbase/elk-elasticsearch_cleanup     elk-elasticsearch_cleanup                       0
garystafford/spring-music-docker-elk   spring-music-docker-elk                         0                                       [OK]
otasys/elk-redis                       An ELK stack with redis all in one container.   0                                       [OK]
itherz/elk                             ELK Stack with some improvements (datetime f…   0                                       [OK]
portbase/elk-metrics                   elk-metrics                                     0
coralproject/elkhorn                   Elkhorn                                         0                                       [OK]
portbase/elk-kibana                    elk-kibana                                      0

 3.下载镜像

[root@ZhiNeng~]#  docker  pull  sebp/elk

4.启动容器

[root@ZhiNeng~]#  docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -e ES_MIN_MEM=128m -e ES_MAX_MEM=1024m -it --name elk sebp/elk
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值