IBM Websphere Application Server Liberty Profile 版本 17.0.0.2 中的主机名设置

host name setting in IBM Web Sphere Application Server Liberty Profile ver 17.0.0.2

我在 Linux CentOs7 中安装了 IBM TRIRIGA Application Platform 10.5.3。在安装 TRIRIGA 安装程序时,我选择了嵌入式服务器,即 IBM Web Sphere Application Server Liberty Profile 17.0.0.2。服务器已成功安装并启动 运行.

从日志中我发现可以访问 IBM Tririga 的服务器主机类似于 URL : http://some.static.ab-xyz.com:8001。这是默认的。我没有提供这个值。

我的问题是:如何更改此 url 主机名?这个在哪里设置?

谢谢 库马尔肖拉夫

每个 Liberty 服务器都有一个 server.xml 文件,其中包含服务器的配置。我不确定 Tririga 在哪里嵌入 Liberty 或其 server.xml,但如果您能找到此文件,您应该会看到如下条目:

<httpEndpoint id="defaultHttpEndpoint" host="*" httpPort="8001"/>

此属性 host="*" 将配置 HTTP 端点以侦听物理机 运行 所在的所有可用网络接口(例如 localhostsome.static.ab-xyz.com) .如果你想让你的服务器在自定义主机名下可用,例如 my-website.com,你需要向 DNS 提供商注册。