连接到 AxonServer 节点 [****] 失败:不可用:网络因未知原因关闭

aki*_*man 1 axon spring-boot

我是 axon 服务器的新手。我在 Spring Boot 中使用 axon 服务器作为远程服务器。不在本地主机中。但是当 Spring Boot 应用程序连接到服务器时,它会失败并显示以下错误。

Connecting to AxonServer node [174.298.31.***:8024] failed: UNAVAILABLE: Network closed for unknown reason
Failed to get connection to AxonServer. Scheduling a reconnect in 2000ms
Run Code Online (Sandbox Code Playgroud)

我的财产文件如下所示,

Connecting to AxonServer node [174.298.31.***:8024] failed: UNAVAILABLE: Network closed for unknown reason
Failed to get connection to AxonServer. Scheduling a reconnect in 2000ms
Run Code Online (Sandbox Code Playgroud)

Maf*_*fei 5

如果您没有更改默认端口,8024则为 HTTP 访问服务器仪表板的默认端口。但是当您尝试使用客户端连接到服务器时,它不是通信端口,而是通信协议8124。请尝试输入8124端口。8024仅适用于仪表板。

axon:
  axonserver:
    servers: 174.298.31.***:8124 
Run Code Online (Sandbox Code Playgroud)