如何在 jboss-7 中更改端口号 [英] How to change port number in jboss-7
问题描述
我正在使用 jboss-7,我想将端口号从 8080 更改为 7001.我需要更改哪个文件?
I am using jboss-7 and I want to change the port number from 8080 to 7001. Which file do I need to change?
推荐答案
文件为$JBOSS_HOME/standalone/configuration/standalone.xml
.在那里找到
和
.
The file is $JBOSS_HOME/standalone/configuration/standalone.xml
. Find <socket-binding-group>
and <socket-binding>
there.
编辑
有多种方法可以做到这一点.推荐的方法是使用管理控制台.如果 JBoss AS 在您的本地计算机上运行,请打开 URL http://localhost:9990/console/App.html#socket-bindings
并在那里编辑套接字绑定.我在 Wildfly 8.1.0 Final 上测试过,不知道 URL 是否对其他版本的 JBoss AS 有效.
There's multiple ways to do this. The recommended way is to use the management console.
If JBoss AS runs on your local computer, open the URL http://localhost:9990/console/App.html#socket-bindings
and edit the socket-bindings there. I tested it on Wildfly 8.1.0 Final, don't know if the URL is valid for other versions of JBoss AS.
这篇关于如何在 jboss-7 中更改端口号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!