源码准备
先把代码download到本地,master代码,git地址:https://github.com/apache/skywalking
oap-server启动
- 执行命令
mvn compile -Dmaven.test.skip=true
,或者使用idea编译
- 启动
org.apache.skywalking.oap.server.webapp.ApplicationStartUp
skywalking ui 启动
- 安装node js,
brew install nodejs
- 启动
npm run serve
- 访问http://localhost:8081/
监控springboot
-
下载skywalking-agent ,
wget https://archive.apache.org/dist/skywalking/8.4.0/apache-skywalking-apm-8.4.0.tar.gz
-
或者使用源码编译,git地址:https://github.com/apache/skywalking-java
-
配置启动参数
-javaagent:/Users/qinfuxiang/Downloads/apache-skywalking-apm-bin/agent/skywalking-agent.jar
-Dskywalking.agent.service_name=common-web
-Dskywalking.collector.backend_service=127.0.0.1:11800
- 启动项目