且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jboss as 7 - 在同一个linux服务器上运行多个实例 - 独立vs域

更新时间:2023-11-22 19:02:40

要在JBOSS_HOME / standalone / configuration / standalone.xml中运行linux上的多个jboss实例,我更改了一行:

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_HOME .bash_profile根据jboss安装说明。我需要删除这个,这样两个实例不会使用相同的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.