Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在域模式下使用负端口偏移量配置JBoss 7.x_Jboss_Jboss7.x - Fatal编程技术网

在域模式下使用负端口偏移量配置JBoss 7.x

在域模式下使用负端口偏移量配置JBoss 7.x,jboss,jboss7.x,Jboss,Jboss7.x,我想将JBoss 7在独立模式和域模式下的默认端口更改为5050: http://localhost:5050 在standlone模式下,我只是在standlone.xml中更改了以下属性: <socket-binding name="http" port="5050"/> 但是,在域模式下,我可以选择仅更改host.xml中的偏移量: <server name="server-one" group="main-server-group"> <

我想将JBoss 7在独立模式和域模式下的默认端口更改为5050:

http://localhost:5050

在standlone模式下,我只是在standlone.xml中更改了以下属性:

<socket-binding name="http" port="5050"/>

但是,在域模式下,我可以选择仅更改host.xml中的偏移量:

<server name="server-one" group="main-server-group">
        <!-- Remote JPDA debugging for a specific server
        <jvm name="default">
          <jvm-options>
            <option value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"/>
          </jvm-options>
       </jvm>
       -->
    <socket-bindings port-offset="5"/>

    </server>
    <server name="server-two" group="main-server-group" auto-start="true">
        <!-- server-two avoids port conflicts by incrementing the ports in
             the default socket-group declared in the server-group -->
        <socket-bindings port-offset="10"/>
    </server>


当我尝试设置负端口偏移量时,启动脚本抛出一个错误。如何在域模式下将端口从8080更改为5050?

在host.xml中为“jboss.http.port”创建系统属性,如:



只需确保端口偏移值必须从5050中扣除

尝试创建一个新的
套接字绑定组
,并将其设置为
    <server name="server-two" group="main-server-group" auto-start="true">
        <system-properties>
            <property name="jboss.http.port" value="4950" boot-time="true"/>
        </system-properties>
        <socket-bindings port-offset="100"/>
    </server>