通信人家园

标题: 分布式日志管理graylog安装  [查看完整版帖子] [打印本页]

时间:  2021-11-29 16:24
作者: liangliangsmart     标题: 分布式日志管理graylog安装

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,亲测有效!!!






通信人家园 (https://www.txrjy.com/) Powered by C114