3.1:二进制部署-架构规划
skywalking-ui: 前端服务,端口号8080.
skywalking-oap:可观测性分析平台,11800为数据写入端口,12800为查询端口。
ES: 9200为elasticsearch的数据读写端口,sky walking支持的存储有es,h2,mysql,tidb,influxdb,postgresql等。
agent: app服务器部署skywalking-agent,用于收集app中的访问请求
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/057835223a4483cbe7d6159e43ce44bc.png)
3.2:环境准备
skywalking(v9.4.0): 192.168.58.152
ElasticSearch(v7.10.1):192.168.58.156
3.3:部署ElasticSearch
~$ wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.1-amd64.deb
~$ wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.1-amd64.deb.sha512
~$ shasum -a 512 -c elasticsearch-7.10.1-amd64.deb.sha512
elasticsearch-7.10.1-amd64.deb: OK
~$ dpkg -i elasticsearch-7.10.1-amd64.deb
~$ vim /etc/elasticsearch/elasticsearch.yml
cluster.name: skywalking-es-cluster
node.name: node-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 192.168.58.156
http.port: 9200
discovery.seed_hosts: ["192.168.58.156"]
cluster.initial_master_nodes: ["192.168.58.156"]
~$ systemctl daemon-reload && systemctl restart elasticsearch.service && systemctl enable elasticsearch.service
3.3.1: 验证elasticsearch
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/18c736103a35aefa57c8c872bb499fe9.png)
3.4:部署skywalking server
~$ apt install openjdk-11-jdk -y
~$ cd /apps
~$ wget https://dlcdn.apache.org/skywalking/9.4.0/apache-skywalking-apm-9.4.0.tar.gz
~$ tar xf apache-skywalking-apm-9.4.0.tar.gz
~$ cd apache-skywalking-apm-bin/
~$ vim config/application.yml
修改存储:
140 storage:
141 selector: ${SW_STORAGE:elasticsearch}
142 elasticsearch:
143 namespace: ${SW_NAMESPACE:"icloud2native"}
144 clusterNodes: ${SW_STORAGE_ES_CLUSTER_NODES:192.168.58.156:9200}
root@sky-serv:/apps/apache-skywalking-apm-bin
SkyWalking OAP started successfully!
SkyWalking Web Application started successfully!
3.4.1: 验证skywalking Server
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/7c712feb73941b602559e5e27a3dc5d8.png)
3.4.2:验证ElastricSearch数据
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/556bace4f31d3b7bb76260f0f11a0d2b.png)