文章目錄
1. 啟動skywalking
cd D:apache-skywalking-apm-binin
- windows環(huán)境:
雙擊??startup.bat?
?
- linux環(huán)境:
2. 配置探針
-javaagent:D:apache-skywalking-apm-binagentskywalking-agent.jar -Dskywalking.agent.service_name=ly-gateway -Dskywalking.collector.backend_service=localhost:11800
-javaagent:D:apache-skywalking-apm-binagentskywalking-agent.jar -Dskywalking.agent.service_name=ly-stock -Dskywalking.collector.backend_service=localhost:11800
-javaagent:D:apache-skywalking-apm-binagentskywalking-agent.jar -Dskywalking.agent.service_name=ly-user -Dskywalking.collector.backend_service=localhost:11800
-javaagent:D:apache-skywalking-apm-binagentskywalking-agent.jar -Dskywalking.agent.service_name=ly-shop-cart -Dskywalking.collector.backend_service=localhost:11800
-javaagent:D:apache-skywalking-apm-binagentskywalking-agent.jar -Dskywalking.agent.service_name=ly-order -Dskywalking.collector.backend_service=localhost:11800
案例:
3. 啟動項目
4. 測試驗證
??http://localhost:8080/??
5. 效果圖
本文摘自 :https://blog.51cto.com/g