Many people choose JBoss as the Web server when doing LVS (Linux virtual server-Linux cluster), the original JBoss configuration cannot meet the needs of LVS operation. In fact, I just need to adjust the listening IP address of JBoss. The moderator had been troubled by this problem for a few days. Later, I was notified by a colleague and wrote it down today.
For standalone JBoss, you only need to add the following content in the standalone. xml configuration file:
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
<interface name="any">
<any-address/>
</interface>
</interfaces>
<socket-binding-group name="standard-sockets" default-interface="any">
<socket-binding name="http" port="80"/>
<socket-binding name="https" port="443"/>
<socket-binding name="jmx-connector-registry" interface="management" port="1090"/>
<socket-binding name="jmx-connector-server" interface="management" port="1091"/>
<socket-binding name="jndi" port="1099"/>
<socket-binding name="osgi-http" interface="management" port="8090"/>
<socket-binding name="remoting" port="4447"/>
<socket-binding name="txn-recovery-environment" port="4712"/>
<socket-binding name="txn-status-manager" port="4713"/>
</socket-binding-group>