如何使用远程服务器主机配置轴突服务器客户端? (没有本地主机)

how to configure axon server client with remote server host? (without localhost)

我是 Axon 服务器的新手。我尝试使用 spring 启动的 Axon 服务器。 我在我的一个云实例上安装了 axon 服务器。当我 运行 spring 引导应用程序时,应用程序找到本地 Axon 服务器。但是在我这里没有本地的。

我在 属性 文件中找不到配置 IP 地址的方法。如果您知道如何在 Spring 启动应用程序中配置 Axon 服务器的远程主机,请帮助我完成。

错误如下,

Requesting connection details from localhost:8124
Connecting to AxonServer node [localhost:8124] failed: UNAVAILABLE: io exception
Failed to get connection to AxonServer. Scheduling a reconnect in 2000ms

谢谢。

要配置 Axon 服务器的位置,请将以下 属性 添加到 application.properties 文件:

axon.axonserver.servers=<hostname/ip address>:<port>

如果你是运行默认端口上的Axon Server,你可以省略端口号。