将 Glassfish 绑定到特定 IP?
我在有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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
默认情况下,网络侦听器侦听 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.