后端安装已就绪,现在看看一个具体的demo是如何运行起来的。
一,安装后端服务
https://www.jianshu.com/p/0ca1a0558cca
二,live demo下载
``
三,编译
四,定义环境变量
export AGENT_DIR=/root/software/apache-skywalking-apm-bin/agent
export COLLECTOR_SERVER_LIST=localhost:10800
五,启动
1,(kafka_2.11-2.3.0.tgz提前下载好)
2,目录结构
drwxr-xr-x. 2 root root 37 Oct 27 23:19 bin
drwxr-xr-x. 2 root root 32 Oct 27 23:15 eureka-service
drwxr-xr-x. 7 root root 101 Oct 27 23:19 kafka_2.11-2.3.0
-rw-r--r--. 1 root root 64596789 Oct 11 07:26 kafka_2.11-2.3.0.tgz
drwxr-xr-x. 2 root root 6 Oct 27 23:19 logs
drwxr-xr-x. 2 root root 26 Oct 27 23:15 projectA
drwxr-xr-x. 2 root root 26 Oct 27 23:15 projectB
drwxr-xr-x. 2 root root 26 Oct 27 23:15 projectC
drwxr-xr-x. 2 root root 26 Oct 27 23:15 projectD
3,启动
bin/startup.sh
4,查看进程已启动
[root@localhost live-demo]# jps
2336 projectA.jar
1634 QuorumPeerMain
1956 Kafka
1957 eureka-service.jar
2742 Jps
1481 OAPServerStartUp
2282 projectB.jar
1500 skywalking-webapp.jar
2301 projectC.jar
2318 projectD.jar
六,测试访问
[root@localhost live-demo]# curl http://localhost:8764/projectA/test
{"traceId":"373cbdbaae8547339134046c5dc5f57b.45.16038859660730001"}[root@localhost live-demo]#
[root@localhost live-demo]# curl http://localhost:8764/projectA/test
{"traceId":"373cbdbaae8547339134046c5dc5f57b.48.16038861251250001"}
七,查看UI效果(记得刷新网页)
2020-10-28 20_08_38-悬浮球.png 2020-10-28 20_09_11-悬浮球.png 2020-10-28 20_09_36-SkyWalking.png 2020-10-28 20_09_51-悬浮球.png 2020-10-28 20_10_39-悬浮球.png
网友评论