Zipkin 服务端部署

Zipkin 服务端部署非常简单,可以通过官网快速上手。

​https://zipkin.io/pages/quickstart.html​

1. 下载 Zipkin 最新 Jar 包

user@user-PC:/data$ curl -sSL https://zipkin.io/quickstart.sh | bash -s
Thank you for trying Zipkin!
This installer is provided as a quick-start helper, so you can try Zipkin out
without a lengthy installation process.

Fetching version number of latest io.zipkin:zipkin-server release...
Latest release of io.zipkin:zipkin-server seems to be 2.23.2

Downloading io.zipkin:zipkin-server:2.23.2:exec to zipkin.jar...
> curl -fL -o 'zipkin.jar' 'https://repo1.maven.org/maven2/io/zipkin/zipkin-server/2.23.2/zipkin-server-2.23.2-exec.jar'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 59.0M 100 59.0M 0 0 7252k 0 0:00:08 0:00:08 --:--:-- 9600k

Verifying checksum...
> curl -fL -o 'zipkin.jar.md5' 'https://repo1.maven.org/maven2/io/zipkin/zipkin-server/2.23.2/zipkin-server-2.23.2-exec.jar.md5'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 32 100 32 0 0 51 0 --:--:-- --:--:-- --:--:-- 51
> md5sum -c <<< "$(cat zipkin.jar.md5)
zipkin.jar: 成功
Checksum for zipkin.jar passes verification

Verifying GPG signature of zipkin.jar...
> curl -fL -o 'zipkin.jar.asc' 'https://repo1.maven.org/maven2/io/zipkin/zipkin-server/2.23.2/zipkin-server-2.23.2-exec.jar.asc'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 833 100 833 0 0 1047 0 --:--:-- --:--:-- --:--:-- 1046

GPG signing key is not known, skipping signature verification.
Use the following commands to manually verify the signature of zipkin.jar:

gpg --keyserver keyserver.ubuntu.com --recv FF31B515
# Optionally trust the key via 'gpg --edit-key FF31B515', then typing 'trust',
# choosing a trust level, and exiting the interactive GPG session by 'quit'

2. 启动

user@user-PC:/data$ java -jar zipkin.jar

oo
oooo
oooooo
oooooooo
oooooooooo
oooooooooooo
ooooooo ooooooo
oooooo ooooooo
oooooo ooooooo
oooooo o o oooooo
oooooo oo oo oooooo
ooooooo oooo oooo ooooooo
oooooo ooooo ooooo ooooooo
oooooo oooooo oooooo ooooooo
oooooooo oo oo oooooooo
ooooooooooooo oo oo ooooooooooooo
oooooooooooo oooooooooooo
oooooooo oooooooo
oooo oooo

________ ____ _ _____ _ _
|__ /_ _| _ \| |/ /_ _| \ | |
/ / | || |_) | ' / | || \| |
/ /_ | || __/| . \ | || |\ |
|____|___|_| |_|\_\___|_| \_|

:: version 2.23.2 :: commit 7bf3aab ::

2021-08-08 10:40:11.408 INFO [/] 3853 --- [oss-http-*:9411] c.l.a.s.Server :

因为 Zipkin 完全是基于 Java 开发的,在安装好 Java 环境后,只需要使用 Curl 命令下载 Zipkin 最新 Jar 包,并利用 Java 命令启动执行即可。

这里有一点需要注意,默认 Zipkin 监听本机 9411 端口,如果是网络远程访问,请在系统防火墙放行 9411 端口,否则无法通信。
启动成功后,访问 Zipkin 后台。

​http://localhost:9411/zipkin/​