skywalking部署
ES:2核4G 10.0.0.16
Skywalking:2核8G 10.0.0.12
安装jdk
# wget https://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.rpm
# rpm -ivh jdk-18_linux-x64_bin.rpm
# java -version
下载es
# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.3.2-x86_64.rpm
安装es
# rpm -ivh elasticsearch-8.3.2-x86_64.rpm
编辑配置文件 另外两台修改node.name
# vim /etc/elasticsearch/elasticsearch.yml
# cat /etc/elasticsearch/elasticsearch.yml | grep -v '#' | grep -v '^$'
cluster.name: skywalking-es-cluster
node.name: node-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 10.0.0.16
http.port: 9200
discovery.seed_hosts: ["10.0.0.16"]
cluster.initial_master_nodes: ["10.0.0.16"]
action.destructive_requires_name: true
xpack.security.enabled: false
xpack.security.enrollment.enabled: true
xpack.security.http.ssl:
enabled: false
keystore.path: certs/http.p12
xpack.security.transport.ssl:
enabled: false
verification_mode: certificate
keystore.path: certs/transport.p12
truststore.path: certs/transport.p12
http.host: 0.0.0.0
启动,开机自动启动
# systemctl restart elasticsearch.service
# systemctl enable elasticsearch.service
查看端口
# netstat -tunlp | grep 9200
tcp6 0 0 :::9200 :::* LISTEN 13816/java
用浏览器插件直接访问下ES是没问题的
访问https://skywalking.apache.org/downloads/官网下载安装包
修改配置并启动,
# yum install java-11-openjdk -y
# wget https://archive.apache.org/dist/skywalking/9.1.0/apache-skywalking-apm-9.1.0.tar.gz -p /apps
# tar -xvf apache-skywalking-apm-9.1.0.tar.gz
# vim /apps/apache-skywalking-apm-bin/config/application.yml
# ./bin/startup.sh
修改的内容,存储改为ES
观察下日志看是否有报错
tail -f /apps/apache-skywalking-apm-bin-es7/logs/*
查看下ES有没有生成索引
直接访问服务器8080端口就可以访问了