jboss 5 更改默认端口

发布于 2024-09-14 00:29:50 字数 345 浏览 6 评论 0原文

我正在尝试将 jboss 服务器上的默认端口更改为端口 80。

我浏览了网络,并收到了编辑此文件 jboss5\server\default\deploy\jbossweb.sar\server.xml 的建议,该文件是美好的。仅更改此文件仍然无法解决问题。

也有人建议也更改此文件: jboss5\server\default\conf\bootstrap\bindings.xml 唯一的问题是我找不到此 binding.xml binding.xml

文件是 JBoss 5 中的标准吗?或者是否已重命名或更改了 JBoss 5 中的位置。

是否有人有任何将默认端口从 8080 更改为 80 的明确步骤。

I am trying to change the default port on my jboss server to port 80.

i have had a look around the web and i have had suggestions of editing this file jboss5\server\default\deploy\jbossweb.sar\server.xml which is fine. changing this file alone still does not fix the issue.

There have also been suggestion to also change this file: jboss5\server\default\conf\bootstrap\bindings.xml Only problem is that i cant find this binding.xml

Is the binding.xml file a standard in JBoss 5? Or has it been renamed or changes location in JBoss 5.

Does anyone have any clear steps on changing the the default port from 8080 to 80.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

初心 2024-09-21 00:29:50

您可以尝试更改 ${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml

Can you try changing in ${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml

甜警司 2024-09-21 00:29:50

${JBOSS_HOME}\server\default\deploy\jbossweb.sar\server.xml

例如,位于路径:
D:\jboss-5.0.0.CR2-jdk6\jboss-5.0.0.CR2\server\default\deploy\jbossweb.sar

搜索部分:

<Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}" 
       connectionTimeout="20000" redirectPort="8443" />

然后,将端口号更改为您选择的,例如:从:“8080”到“8090”如下:

<Connector protocol="HTTP/1.1" port="8090" address="${jboss.bind.address}" 
       connectionTimeout="20000" redirectPort="8443" />

希望这对您有帮助。

${JBOSS_HOME}\server\default\deploy\jbossweb.sar\server.xml

For example, locate in the path:
D:\jboss-5.0.0.CR2-jdk6\jboss-5.0.0.CR2\server\default\deploy\jbossweb.sar,

search for the section:

<Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}" 
       connectionTimeout="20000" redirectPort="8443" />

Then, change the port number to the one you choose, for example: from: "8080" to "8090" as follows:

<Connector protocol="HTTP/1.1" port="8090" address="${jboss.bind.address}" 
       connectionTimeout="20000" redirectPort="8443" />

I hope this would help you.

少女净妖师 2024-09-21 00:29:50

这适用于 jboss-5.1.0.GA :
编辑文件 ${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml 如下 ->
将 ${jboss.service.binding.set:ports-default} 更改为
${jboss.service.binding.set:ports-01}

这会将所有默认端口更改为默认+100 端口。
HTTP-> 8180等。

This works on jboss-5.1.0.GA :
Edit the file ${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml as follows ->
Change ${jboss.service.binding.set:ports-default} to
${jboss.service.binding.set:ports-01}

This will change all defalt to default+100 port.
HTTP - > 8180 and so on.

楠木可依 2024-09-21 00:29:50

可以按照同行在接下来的两个文件中的解释来配置端口:

${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml

${JBOSS_HOME}/server/default/deploy/jboss-web.deployer/server.xml

当两种配置共存时,Jboss 适用于最高端口,例如:

jbossweb.sar

Connector protocol="HTTP/1.1" port="8980" address="${jboss.bind.address}" 
       connectionTimeout="20000" redirectPort="8443" 

Bindings-jboss-beans.xml

*${jboss.service.binding.set:ports-01}*

Jboss 将在端口 8980 中运行

It´s posible configure the ports as explained by peers in the next two files:

${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml

${JBOSS_HOME}/server/default/deploy/jboss-web.deployer/server.xml

When the two configurations coexist Jboss works for the highest port, for example:

jbossweb.sar

Connector protocol="HTTP/1.1" port="8980" address="${jboss.bind.address}" 
       connectionTimeout="20000" redirectPort="8443" 

bindings-jboss-beans.xml

*${jboss.service.binding.set:ports-01}*

Jboss will run in port 8980

死开点丶别碍眼 2024-09-21 00:29:50

另一部分可能是

块引用

D:\jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\server.xml

块引用

   *<Connector port=**"9090"** address="${jboss.bind.address}"    
     maxThreads="250" maxHttpHeaderSize="8192"
     emptySessionPath="true" protocol="HTTP/1.1"
     enableLookups="false" redirectPort="8443" acceptCount="100"
     connectionTimeout="20000" disableUploadTimeout="true" />*

更改上面的端口

another part could be

Blockquote

D:\jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\server.xml

Blockquote

There

   *<Connector port=**"9090"** address="${jboss.bind.address}"    
     maxThreads="250" maxHttpHeaderSize="8192"
     emptySessionPath="true" protocol="HTTP/1.1"
     enableLookups="false" redirectPort="8443" acceptCount="100"
     connectionTimeout="20000" disableUploadTimeout="true" />*

change the port above

拍不死你 2024-09-21 00:29:50

只需更改文件

jboss-5.0.0.GA\server\default\deploy\jbossweb.sar\server.xml

  <Connector protocol="HTTP/1.1" port="7070" address="${jboss.bind.address}" 
           connectionTimeout="20000" redirectPort="8443" />

中的端口号即可,上面我已更改为 7070。

Just change the port number in the file

jboss-5.0.0.GA\server\default\deploy\jbossweb.sar\server.xml

  <Connector protocol="HTTP/1.1" port="7070" address="${jboss.bind.address}" 
           connectionTimeout="20000" redirectPort="8443" />

In the above i have changed to 7070.

美人迟暮 2024-09-21 00:29:50

更改文件 ${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml 中的端口号。例如到 6060

  <Connector protocol="HTTP/1.1" port="6060" address="${jboss.bind.address}" 
           connectionTimeout="20000" redirectPort="8443" />

如果由于任何原因不起作用也将其更改为另一个。到同一个港口。

jboss-5.0.0.GA\server\default\deploy\jbossweb.sar\server.xml

Change the port number in the file ${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml. For example to 6060

  <Connector protocol="HTTP/1.1" port="6060" address="${jboss.bind.address}" 
           connectionTimeout="20000" redirectPort="8443" />

If for any reason dont works also change this another too. To the same port.

jboss-5.0.0.GA\server\default\deploy\jbossweb.sar\server.xml

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文