C114门户论坛百科APPEN| 举报 切换到宽版

亚星游戏官网

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索
查看: 1638|回复: 0

[通信技术与资料] 分布式日志管理graylog安装 [复制链接]

军衔等级:

亚星游戏官网-yaxin222  新兵

注册:2020-9-9
发表于 2021-11-29 16:24:18 |显示全部楼层
docker run  \--name mongo \-p 27017:27017  \-v /opt/docker/mongodb/configdb:/data/configdb/ \-v /opt/docker/mongodb/db/:/data/db/ \--restart=always -d mongo:4.4.4

docker run \--name es \-p 9300:9200 -p 9400:9300 \-e "discovery.type=single-node" \-e http.cors.allow-origin="*" \-e http.cors.enabled=true \--restart=always -d docker.elastic.co/elasticsearch/elasticsearch:6.3.2


docker run \--link mongo:mongo \--link es:docker.elastic.co/elasticsearch/elasticsearch \--name graylog \-p 9000:9000 \
-p 514:514/udp \
-p 514:514 \
-p 10515:10515 \
-p 10516:10516 \
-p 10517:10517 \
-p 10518:10518 \
-p 10518:10518/udp \
-p 10519:10519 \
-p 10519:10519/udp \
-p 10520:10520 \
-p 10520:10520/udp \
-p 10521:10521 \
-p 10521:10521/udp \
-p 10522:10522 \
-p 10522:10522/udp \
-p 10523:10523 \
-p 10523:10523/udp \
-p 10524:10524 \
-p 10524:10524/udp \
-p 10525:10525 \
-p 10525:10525/udp \
-p 10526:10526 \
-p 10526:10526/udp \
-p 10527:10527 \
-p 10527:10527/udp \-p 12201:12201/udp \-e GRAYLOG_HTTP_EXTERNAL_URI=http://192.168.8.100:9000/ \-e GRAYLOG_ROOT_TIMEZONE=Asia/Shanghai  \-e GRAYLOG_WEB_ENDPOINT_URI="http://192.168.8.100:9000/:9000/api" \-e GRAYLOG_PASSWORD_SECRET=somepasswordpepper \-e GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918 \--restart=always -d graylog/graylog:3.1
服务器地址192.168.8.100,亲测有效!!!

举报本楼

您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系大家 |网站地图  

GMT+8, 2024-11-15 11:01 , Processed in 0.415551 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部
XML 地图 | Sitemap 地图