Docker 安装 Elasticsearch、Kibana
为了Skywalking 准备
elasticsearch 至少 需要2G内存
docker pull elasticsearch:7.9.3 docker run --name elasticsearch -p 9200:9200 -p 9300:9300 \ -e "discovery.type=single-node" \ -v /opt/elasticsearch/logs:/usr/share/elasticsearch/logs \
-d elasticsearch:7.9.3
注:Linux 主机目录 /opt/elasticsearch/ 要设权限,否则会启不来
如果启不来,通过下列命令查看日志
docker logs --since 30m elasticsearch docker logs --tail=100 -f elasticsearch
安装 Kibana:7.9.3
docker pull kibana:7.9.3 docker run --name kibana --restart=always \ -p 5601:5601 \ -e ELASTICSEARCH_HOSTS="http://172.16.3.61:9200/" \ -e "I18N_LOCALE=zh-CN" \ -d kibana:7.9.3
本文来自博客园,作者:VipSoft 转载请注明原文链接:https://www.cnblogs.com/vipsoft/p/14787059.html