Zipkin
Zipkin 官網已經不提供下載了,需要去 GitHub 下載。
有兩種方式:
- curl 下載 jar 包,並使用
java -jar命令運行 jar 包。 - Docker 安裝 Zipkin 鏡像,並使用
dokcer run命令運行。

啟動失敗

2021-09-28 21:38:22.170 WARN [/] 14824 --- [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'armeriaServer' defined in com.linecorp.armeria.spring.ArmeriaAutoConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.linecorp.armeria.server.Server]: Factory method 'armeriaServer' threw exception; nested exception is java.util.concurrent.CompletionException: java.lang.IllegalStateException: Armeria server failed to start
從報錯來看是 Armeria[ɑːˈmiːrɪə] 服務器沒有起來,而 Zipkin 的端口是 9411,使用命令 netstat -ano | findstr ":9411" 查看,9411 端口果然被 22704 號進程 javaw.exe 占用。

執行命令 taskkill /im javaw.exe /f 殺死進程即可,最好使用 taskkill /pid 進程號 /f 按進程號殺死進程。
