将 Glassfish 绑定到特定 IP?

发布于 2024-12-20 22:58:50 字数 95 浏览 3 评论 0原文

我在有2个IP的机器上安装了Glassfish 3.1,我想将Glassfish绑定到一个IP并使其仅监听此IP,因此只能通过此IP访问该服务,目前可以使用2个IP访问ip ?

I have the Glassfish 3.1 installed on machine that has 2 IP , I want to bind the Glassfish to one IP and make it listen to this IP only ,so the service can be accessed only through this IP , currently It can be accessed using the 2 Ips ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

看透却不说透 2024-12-27 22:58:50

默认情况下,网络侦听器侦听 0.0.0.0(所有网络接口)。您可以逐个配置地更改此设置。

在导航树中,转到 Configurations->server-config->NetworkConfig->NetworkListeners->http-listener1

在该页面上,您可以将 IP 从 0.0.0.0 更改为您想要的任何值。

当然,您可以将“server-config”更改为您想要的任何配置。您还可以选择要更新(或创建新的)的 http 侦听器。

有关详细信息,请查看文档

By default the network listeners listen to 0.0.0.0 (all network interfaces). You can change this on a config-by-config basis.

In the navigation tree, go to Configurations->server-config->NetworkConfig->NetworkListeners->http-listener1

On that page you can change the IP from 0.0.0.0 to whatever you want.

Of course, you can change "server-config" to whatever configuration you want. You can also choose the http listener you want to update (or create a new one).

For more info, check out the documentation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文