http://blog.csdn.net/ghost_t/article/details/5708991
jBoss版本:
jboss-5.1.0.GA
jboss-6.0.0.Final
jboss-5.1.0.GA修改方法:
打开%JBOSS_HOME%\server\default\deploy\jbossweb.sar\server.xml文件,找到下面一段代码,修改端口号
代码:
<!-- A HTTP/1.1 Connector on port 8080 -->
<Connector protocol="HTTP/1.1" port="8080" address="0.0.0.0"
connectionTimeout="20000" redirectPort="8443" />
jboss-6.0.0.Final修改方法:
1.(推荐做法)打开%JBOSS_HOME%\server\default\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml文件,搜索8080并找到下面一段代码,修改port属性配置的端口号
代码:
<bean class="org.jboss.services.binding.ServiceBindingMetadata">
<property name="serviceName">jboss.web:service=WebServer</property>
<property name="bindingName">HttpConnector</property>
<property name="port">8080</property>
<property name="description">JBoss Web HTTP connector socket; also drives the values for the HTTPS and AJP sockets</property>
</bean>
2.打开%JBOSS_HOME%\server\default\deploy\jbossweb.sar\server.xml文件,搜索8080并找到下面一段代码,将${jboss.web.http.port}替换为自己想要修改成的端口号
代码:
<!-- A HTTP/1.1 Connector on port 8080 -->
<Connector protocol="HTTP/1.1" port="${jboss.web.http.port}" address="${jboss.bind.address}"
redirectPort="${jboss.web.https.port}" />
更多文章:
修改Jboss5默认端口号-http://blog.csdn.net/ghost_t/article/details/5708991
JBoss6端口修改-http://blog.csdn.net/zhouxuguang236/article/details/6700666
时间: 2024-10-29 19:11:29