jboss 5 更改默认端口
我正在尝试将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
您可以尝试更改
${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
${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,
搜索部分:
然后,将端口号更改为您选择的,例如:从:“8080”到“8090”如下:
希望这对您有帮助。
${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:
Then, change the port number to the one you choose, for example: from: "8080" to "8090" as follows:
I hope this would help you.
这适用于 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.
可以按照同行在接下来的两个文件中的解释来配置端口:
当两种配置共存时,Jboss 适用于最高端口,例如:
jbossweb.sar
Bindings-jboss-beans.xml
Jboss 将在端口 8980 中运行
It´s posible configure the ports as explained by peers in the next two files:
When the two configurations coexist Jboss works for the highest port, for example:
jbossweb.sar
bindings-jboss-beans.xml
Jboss will run in port 8980
另一部分可能是
D:\jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\server.xml
有
更改上面的端口
another part could be
D:\jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\server.xml
There
change the port above
只需更改文件
jboss-5.0.0.GA\server\default\deploy\jbossweb.sar\server.xml
中的端口号即可,上面我已更改为 7070。
Just change the port number in the file
jboss-5.0.0.GA\server\default\deploy\jbossweb.sar\server.xml
In the above i have changed to 7070.
更改文件 ${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml 中的端口号。例如到 6060
如果由于任何原因不起作用也将其更改为另一个。到同一个港口。
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
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