标签:service bin analysis -name 安装 exec eve disco 内容
一、安装Elasticsearch
docker run -d --name=elasticsearch -p 19200:9200 -p 19300:9300 -e "discovery.type=single-node" elasticsearch:7.5.1
访问:http://ip:19200
安装中文分词插件
1、进入容器,docker exec -it elasticsearch /bin/bash,进入bin,cd bin
2、下载插件 wget https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.5.1/elasticsearch-analysis-ik-7.5.1.zip
3、解压插件并安装
unzip elasticsearch-analysis-ik-7.5.1.zip
plugin install elasticsearch-analysis-ik-7.5.1
或者进入bin后直接安装网络文件:
elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.5.1/elasticsearch-analysis-ik-7.5.1.zip
二、安装Kibana
sudo docker run --name kibana --link elasticsearch:elasticsearch -e ELASTICSEARCH_URL=http://elasticsearch:9200 -p 15601:5601 -d docker.elastic.co/kibana/kibana:7.5.1
访问:http://ip:15601
三、安装Skywalking
1、安装op
docker run --name oap --restart always -d \
--restart=always \
-e TZ=Asia/Shanghai \
-p 12800:12800 \
-p 11800:11800 \
--link elasticsearc:elasticsearc \
-e SW_STORAGE=elasticsearch \
-e SW_STORAGE_ES_CLUSTER_NODES=elasticsearc:9200 \
apache/skywalking-oap-server:6.6.0-es7
2、安装UI
docker run -d --name skywalking-ui \
--restart=always \
-e TZ=Asia/Shanghai \
-p 8088:8080 \
--link oap:oap \
-e SW_OAP_ADDRESS=oap:12800 \
apache/skywalking-ui:6.6.0
访问:http://ip:8088
四、NetCore应用Skywalking
1、为项目添加NuGet程序包SkyAPM.Agent.AspNetCore的引用
2、添加skyapm.json文件,属性为如果较新则复制,内容如下:
{
"SkyWalking": {
"ServiceName": "Demo01",
"Namespace": "",
"HeaderVersions": [
"sw6"
],
"Sampling": {
"SamplePer3Secs": -1,
"Percentage": -1.0
},
"Logging": {
"Level": "Debug",
"FilePath": "logs/skyapm-{Date}.log"
},
"Transport": {
"Interval": 3000,
"ProtocolVersion": "v6",
"QueueSize": 30000,
"BatchSize": 3000,
"gRPC": {
"Servers": "服务安装ip:11800",
"Timeout": 10000,
"ConnectTimeout": 10000,
"ReportTimeout": 600000
}
}
}
}
3、展开项目的Properties,打开launchSettings.json文件,在其中的环境变量中加入:"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "SkyAPM.Agent.AspNetCore"
Elasticsearch、kibana与Skywalking在docker中安装集成应用
标签:service bin analysis -name 安装 exec eve disco 内容
原文地址:https://www.cnblogs.com/zxsn2014/p/14368597.html