Http://blog.csdn.net/ghost_t/article/details/5708991
JBoss version:Jboss-5.1.0.GAjboss-6.0.0.Final
Jboss-5.1.0.GA modification method:Open the % jboss_home % \ Server \ Default \ deploy \ jbossweb. Sar \ Server. xml file, find the following code, modify the port number
Code: <! -- 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 modification method:1. (Recommended Practice) Open % jboss_home % \ Server \ Default \ conf \ bindingservice. Beans \ META-INF \ bindings-jboss-beans.xml file, search 8080 and find the following code to modify the port property configuration's port number
Code: <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. open % jboss_home % \ Server \ Default \ deploy \ jbossweb. SAR \ Server. search for the XML file 8080 and find the following code, which will be $ {JBoss. web. HTTP. replace port} with the port number you want to modify
Code: <! -- 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}"/> More articles: Modify jboss5 default port number-Internal
Modify the port number of JBoss