Zipkin Server 啟動失敗


Zipkin

Zipkin 官網已經不提供下載了,需要去 GitHub 下載。

有兩種方式:

  • curl 下載 jar 包,並使用 java -jar 命令運行 jar 包。
  • Docker 安裝 Zipkin 鏡像,並使用 dokcer run 命令運行。

Zipkin 下載

啟動失敗

啟動失敗

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 占用。
9411

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM