问题描述
是否可以通过 WSO2 ESB 的单个安装启动多个 WSO2 ESB 实例,每个实例具有不同的端口配置?
Is it possible to start multiple instance of WSO2 ESB with different port configuration for each instance but from single installation of WSO2 ESB?
就像我们对 tomcat 所做的一样(CATALINA_HOME 和 CATALINA_BASE).
Like we do with tomcat (CATALINA_HOME and CATALINA_BASE).
推荐答案
AFAIK OOTB 您不能像现在一样从单个安装启动 WSO2 ESB(或任何基于 Carbon 的产品)的多个实例.
AFAIK OOTB you can't start multiple instances of WSO2 ESB (or any Carbon based products) from a single installation as now.
但您可以简单地安装多个服务器(只需解压缩到 wso2esb-x.x.x.zip 到多个文件夹).并使用 -DportOffset 选项运行服务器,如下所示,
But you can simply have multiple server installations (just unzip to wso2esb-x.x.x.zip to multiple folders). And run the server with -DportOffset option as follows,
$sh <CARBON_HOME>/bin/wso2server.sh -DportOffset=1
(或者如果你在 Windows 中使用 bat 文件)
(Or use bat file if you are in windows)
或者如果你想保留端口偏移,你可以打开/repository/conf/carbon.xml
文件然后搜索标签并按如下方式设置端口偏移量,
Or if you want persist the port offset, you can open <CARBON_HOME>/repository/conf/carbon.xml
file then search for tag <Offset>
and set a port offset as follows,
<Offset>1</Offset>
并像往常一样运行服务器(没有端口偏移选项),
And run the server with as usual (without the port offset option),
$sh <CARBON_HOME>/bin/wso2server.sh
HTH,
达雷
这篇关于WSO2 ESB - 从 WSO2 ESB 的单个安装启动具有不同端口(接收/侦听端口)的多个 ESB 实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!