docker 安装elasticsearch7.9 和 SkyWalkin9.0.3
如果出现镜像拉取过慢,请查看:https://www.cnblogs.com/binz/p/11790948.html 中的更换国内镜像
1、相关地址:
官网:https://skywalking.apache.org/
下载:https://skywalking.apache.org/downloads/
Github:https://github.com/apache/skywalking
文档:https://skywalking.apache.org/docs/main/v9.1.0/readme/ 其他版本文档,先进https://skywalking.apache.org/docs/main/,选择版本,查看readme
中文文档:https://skyapm.github.io/document-cn-translation-of-skywalking/
docker官方部署说明:https://skywalking.apache.org/docs/main/v9.4.0/en/setup/backend/backend-docker/
2、拉取docker镜像
docker pull elasticsearch:7.9.0 docker pull apache/skywalking-oap-server:9.3.0 docker pull apache/skywalking-ui:9.3.0
3、创建数据目录
mkdir -p /home/dockerdata/elasticsearch/data mkdir -p /home/dockerdata/elasticsearch/logs
chmod 777 -R /home/dockerdata/elasticsearch/
4、运行elasticsearch
docker run -d --name=es7 \
--restart=always \
-p 9200:9200 -p 9300:9300 \
-e "discovery.type=single-node" \
-e ES_JAVA_OPTS="-Xms64m -Xmx512m" \
-v /home/dockerdata/elasticsearch/data:/usr/share/elasticsearch/data \
-v /home/dockerdata/elasticsearch/logs:/usr/share/elasticsearch/logs \
elasticsearch:7.9.0
5、验证浏览器访问:http://localhost:9200/,返回以下json就表示安装成功
{ "name" : "d654638612a6", "cluster_name" : "docker-cluster", "cluster_uuid" : "GNDrM2ckTZuv_Q9GdFIUVg", "version" : { "number" : "7.9.0", "build_flavor" : "default", "build_type" : "docker", "build_hash" : "a479a2a7fce0389512d6a9361301708b92dff667", "build_date" : "2020-08-11T21:36:48.204330Z", "build_snapshot" : false, "lucene_version" : "8.6.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
6、极速方式安装skywalking-oap ,挂载配置文件方式在下方
docker run --name oap --restart always -d \ --privileged=true -it \ -p 11800:11800 -p 12800:12800 \ -e TZ=Asia/Shanghai \ -e JVM_Xms=512M \ -e JVM_Xmx=1024M \ -e SW_STORAGE=elasticsearch \ -e SW_STORAGE_ES_CLUSTER_NODES=es的ip:9200 \ apache/skywalking-oap-server:9.3.0 bin/bash
7、安装skywalking-ui,18088改成你想暴露的端口
docker run --name oap-ui --restart=always -d \ --privileged=true -it \ -p 18088:8080 \ -e SW_OAP_ADDRESS=http://oapService的ip:12800 \ -e TZ=Asia/Shanghai \ apache/skywalking-ui:9.3.0 bin/bash
9、安装skywalking-oap ,挂载配置文件方式
#运行容器 docker run --name oap --restart always -d --privileged=true -it apache/skywalking-oap-server:9.3.0 bin/bash #创建挂载目录 mkdir -p /home/dockerdata/skywalking/{oap,ui} #移除容器 docker rm -f oap #修改配置 vim /home/dockerdata/skywalking/oap/skywalking/config/application.yml #修改默认为elasticsearch和配置es的ip及端口,其他参数根据自身需要修改 storage: selector: ${SW_STORAGE:elasticsearch} elasticsearch: namespace: ${SW_NAMESPACE:""} clusterNodes: ${SW_STORAGE_ES_CLUSTER_NODES:你的esIp:9200} protocol: ${SW_STORAGE_ES_HTTP_PROTOCOL:"http"} connectTimeout: ${SW_STORAGE_ES_CONNECT_TIMEOUT:3000} socketTimeout: ${SW_STORAGE_ES_SOCKET_TIMEOUT:30000} responseTimeout: ${SW_STORAGE_ES_RESPONSE_TIMEOUT:15000} numHttpClientThread: ${SW_STORAGE_ES_NUM_HTTP_CLIENT_THREAD:0} user: ${SW_ES_USER:"admin"} password: ${SW_ES_PASSWORD:"admin"} trustStorePath: ${SW_STORAGE_ES_SSL_JKS_PATH:""} trustStorePass: ${SW_STORAGE_ES_SSL_JKS_PASS:""} #挂载配置文件模式运行 docker run --name oap --restart always -d \ --privileged=true -it \ -p 11800:11800 -p 12800:12800 \ -e TZ=Asia/Shanghai \ -e JVM_Xms=512M \ -e JVM_Xmx=1024M \ -v /home/dockerdata/skywalking/oap/skywalking:/skywalking \ apache/skywalking-oap-server:9.3.0 bin/bash
分享一个淘宝、京东、拼多多、饿了么、美团、抖音等等买东西后真实返钱小技巧,
打车、外卖领券,充值话费95折好像也可以
使用教程用微信扫下方二维码查看详细说明