1.JBOSS 5.0端口设置
网上找到了许多关于JBOSS端口设置的,不过最后发现都是一些4.0的端口设置方法,JBOSS 5.0与4.0版本目录结构有很大变化,下面将JBOSS 5.0端口设置方法。
找到目录D:\Program Files (x86)\JavaEE\jboss-5.0.1.GA\server\default\deploy\jbossweb.sar\server.xml,打开server.xml,将原来的
<!-- A HTTP/1.1 Connector on port 8080 -->
<Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}"
connectionTimeout="20000" redirectPort="8443" />
<!-- Add this option to the connector to avoid problems with
.NET clients that don't implement HTTP/1.1 correctly
restrictedUserAgents="^.*MS Web Services Client Protocol 1.1.4322.*{1}quot;
-->
<!-- A AJP 1.3 Connector on port 8009 -->
<Connector protocol="AJP/1.3" port="8009" address="${jboss.bind.address}"
redirectPort="8443" />修改为:
<!-- A HTTP/1.1 Connector on port 8180 -->
<Connector protocol="HTTP/1.1" port="8180" address="${jboss.bind.address}"
connectionTimeout="20000" redirectPort="8443" />
<!-- Add this option to the connector to avoid problems with
.NET clients that don't implement HTTP/1.1 correctly
restrictedUserAgents="^.*MS Web Services Client Protocol 1.1.4322.*{1}quot;
-->
<!-- A AJP 1.3 Connector on port 8109 -->
<Connector protocol="AJP/1.3" port="8109" address="${jboss.bind.address}"
redirectPort="8443" />修改完以后启动jboss服务器,http://localhost:8180/ 就是登陆地址。
2.Tomcat端口设置
Tomcat设置端口的配置文件在目录:D:\Program Files (x86)\JavaEE\apache-tomcat-6.0.33\conf\server.xml。
修改方法跟jboss差不多,设置自己的端口即可。这里我tomcat的端口保持为原来的8080.
作者:xwdreamer