es 10.0.0.17
skywalking 10.0.0.2
halo 10.0.0.14
先部署一个halo博客
安装jdk
yum install java-11-openjdk -y
下载halo博客jar包和skywalking-java-agent包
wget https://github.com/halo-dev/halo/releases/download/v1.5.4/halo-1.5.4.jar -p /apps
wget https://dlcdn.apache.org/skywalking/java-agent/8.11.0/apache-skywalking-java-agent-8.11.0.tgz -p /data
解压并配置skywalking-java-agent
tar xvf apache-skywalking-java-agent-8.11.0.tgz
vim skywalking-agent/config/agent.config
agent.service_name=${SW_AGENT_NAME:halo}
agent.namespace=${SW_AGENT_NAMESPACE:halo}
collector.backend_service=${SW_AGENT_COLLECTOR_BACKEND_SERVICES:10.0.0.2:11800}
启动方式查看官方文档
https://skywalking.apache.org/docs/skywalking-java/v8.11.0/en/setup/service-agent/java-agent/readme/
我这里的启动方式
java -javaagent:/data/skywalking-agent/skywalking-agent.jar -jar /apps/halo-1.5.4.jar
启动后直接访问ip:8090进行初始化
登陆
在halo页面多点几次去访问skywalking,就可以看到数据了。
标签:10.0,java,jar,agent,链路,skywalking,halo From: https://www.cnblogs.com/zyyang1993/p/16635378.html