jboss as 7 - 在同一个 linux 服务器中运行多个实例 - 独立 vs 域 [英] jboss as 7 - running multiple instances in the same linux server - standalone vs domain
问题描述
- 我下载了 jboss tar 文件.
- 复制到我的测试服务器中.
- 解压并安装在 $HOME/jboss/
现在,我需要在单个服务器上同时运行三个实例 - Dev、QA、UAT.
Now, I need to have three instances running at the same time - Dev, QA, UAT - on a SINGLE server.
是针对这种情况的域模式吗?我的结论是它不是.该域模式是跨多个服务器管理 JVM.例如,如果我希望 QA 在 server1 和 server2 中.对吗?
Is the Domain mode for this situation? My conclusion was that it is not. That Domain mode is to manage JVMs across multiple servers. For example, if I wanted QA to be in server1 and server2. Is that correct?
但是,我的需要不是跨多个服务器管理 JBOSS 实例.
However, my need is NOT to manage JBOSS instances across multiple servers.
鉴于我应该使用独立模式吗?如果是这样,我将如何同时运行三个 JBOSS 实例(Dev、QA 和 UAT).
Given that should I be using standalone mode? If so, how would I run three instances of JBOSS (Dev, QA and UAT) concurrently.
我尝试了此处给出的说明(方法 2):https://community.jboss.org/wiki/MultipleInstancesOfJBossAS7OnTheSameMachine
I tried the instructions given here (Approach 2) : https://community.jboss.org/wiki/MultipleInstancesOfJBossAS7OnTheSameMachine
但我不断收到这样的错误:
But I keep getting the errors like this:
MSC00001: Failed to start service jboss.serverManagement.controller.management.http: org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management.http: Address already in use /127.0.0.1:9990
是否有任何我可以遵循的简单教程.我看到这个问题被问了很多次,但似乎没有一个有令人满意的答案......我觉得这很有帮助.这是低级开发者不应该独自在家尝试的黑魔法吗?
Is there any simple tutorial that I can follow. I see this questions asked multiple times, but none of them seem to have a satisfactory answer.... that I find helpful. Is this a black art that lowly developers should not attempt in their home alone?
新加坡银行
推荐答案
为了让多个 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.
这篇关于jboss as 7 - 在同一个 linux 服务器中运行多个实例 - 独立 vs 域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!