JBoss WildFly:启动但无法连接? [英] JBoss WildFly: Starts but can't connect?

查看:596
本文介绍了JBoss WildFly:启动但无法连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚配置了JBoss WildFly.它正在运行,并且可以从同一台计算机上访问,一切正常...

I just configured JBoss WildFly. It is running and it is accessible from the same machine, everything is working fine...

我的问题是无法从另一个系统访问它(我的意思是在网络中,服务器(托管计算机)URL无法从另一个系统访问).

My problem is that it is not accessible from another system (I mean in a network, the server (hosted machine) URL can't access from another system).

我该如何解决?

推荐答案

默认情况下,jboss/wildfly绑定到本地主机,如果要更改此设置,可以执行:

By default jboss/wildfly binding to localhost, if you want change this, you can execute:

standalone.sh -b 0.0.0.0

监听计算机的所有IP地址(如果是多宿主的话)

listen on all IP addresses of the machine (if multihomed)

另一种替代方法是在standalone.xml接口部分中进行配置.

Another alternative is configure in standalone.xml the interfaces section.

更改:

<interfaces>
  <interface name="management">
   <inet-address value="127.0.0.1"/>
  </interface>
  <interface name="public">
   <inet-address value="127.0.0.1"/>
  </interface>
</interfaces>

收件人:

<interfaces>
  <interface name="management">
   <!-- Use the IPv4 wildcard address -->
   <any-ipv4-address/>
  </interface>
  <interface name="public">
   <!-- Use the IPv4 wildcard address -->
   <any-ipv4-address/>
  </interface>
</interfaces>

参考:

  • WildFly - Interfaces and ports
  • WildFly - Command line parameters

更新

来自Wildfly 8 <any-ipv4-address/>已弃用并在Wildfly 9中删除,然后如果您使用的是9.x或更高版本,请使用<any-address/>.

From Wildfly 8 <any-ipv4-address/> was deprecated and remove in Wildfly 9, then if you are in 9.x or higher use <any-address/>.

已弃用.在没有-Djava.net.preferIPv4Stack=true的情况下, 无法指示JVM将套接字绑定到所有IPv4地址,但是 仅针对IPv4地址,因此无法获得预期的语义 仅通过此设置.由于使用any-addressType并进行设置 -Djava.net.preferIPv4Stack=true提供相同的效果,这 any-ipv4-addressType将在以后的版本中删除.

Deprecated. In the absence of -Djava.net.preferIPv4Stack=true, the JVM cannot be instructed to bind a socket to all IPv4 addresses, but only to IPv4 addresses, so the intended semantic cannot be obtained via this setting alone. Since using any-addressType and setting -Djava.net.preferIPv4Stack=true provides the same effect, this any-ipv4-addressType will be removed in a future release.

例如:

<interface name="global">
   <!-- Use the wildcard address -->
   <any-address/>
</interface>

这篇关于JBoss WildFly:启动但无法连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆