更新时间:2023-11-22 19:07:22
为了让多个 jboss 实例在 linux 上运行,我在 JBOSS_HOME/standalone/configuration/standalone.xml 中更改了一行:
To get multiple jboss instances running on linux, in JBOSS_HOME/standalone/configuration/standalone.xml, I changed a single line from :
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
以下...
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:100}">
注意:我遇到问题的原因是因为我已经按照 jboss 安装说明在我的 .bash_profile 中设置了我的 JBOSS_HOME.我需要删除它,以便两个实例不会使用相同的 JBOSS_HOME.
NOTE: The reason I was having problem was because I had setup my JBOSS_HOME in my .bash_profile as per the jboss installation instructions. I needed to remove this so that both instances would not use the same JBOSS_HOME.