Zipkin Server 启动失败
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
按进程号杀死进程。