JBOSS 5.0与tomcat 6.0端口设置

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,将原来的

[java]  view plain copy print ?
  1. <!-- A HTTP/1.1 Connector on port 8080 -->  
  2.     <Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}"   
  3.              connectionTimeout="20000" redirectPort="8443" />  
  4.   
  5.     <!-- Add this option to the connector to avoid problems with   
  6.         .NET clients that don't implement HTTP/1.1 correctly   
  7.        restrictedUserAgents="^.*MS Web Services Client Protocol 1.1.4322.*{1}quot;  
  8.     -->  
  9.   
  10.     <!-- A AJP 1.3 Connector on port 8009 -->  
  11.     <Connector protocol="AJP/1.3" port="8009" address="${jboss.bind.address}"  
  12.        redirectPort="8443" />  
修改为:

[java]  view plain copy print ?
  1. <!-- A HTTP/1.1 Connector on port 8180 -->  
  2.     <Connector protocol="HTTP/1.1" port="8180" address="${jboss.bind.address}"   
  3.              connectionTimeout="20000" redirectPort="8443" />  
  4.   
  5.     <!-- Add this option to the connector to avoid problems with   
  6.         .NET clients that don't implement HTTP/1.1 correctly   
  7.        restrictedUserAgents="^.*MS Web Services Client Protocol 1.1.4322.*{1}quot;  
  8.     -->  
  9.   
  10.     <!-- A AJP 1.3 Connector on port 8109 -->  
  11.     <Connector protocol="AJP/1.3" port="8109" address="${jboss.bind.address}"  
  12.        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博客园博客,原文链接:http://www.cnblogs.com/xwdreamer/archive/2011/10/26/2296946.html,如需转载请自行联系原作者
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值