1、修改Jboss端口号
1. 修改jboss-4.0.5.GA端口号
jboss-4.0.5.GA/server/default/deploy/jbossweb-tomcat55.sar/server.xml
<!--
A HTTP/1.1 Connector on port 8080 -->
< Connector port ="6080" address ="${jboss.bind.address}"
maxThreads ="250" strategy ="ms" maxHttpHeaderSize ="8192"
emptySessionPath ="true"
enableLookups ="false" redirectPort ="8443" acceptCount ="100"
connectionTimeout ="20000" disableUploadTimeout ="true" />
< Connector port ="6080" address ="${jboss.bind.address}"
maxThreads ="250" strategy ="ms" maxHttpHeaderSize ="8192"
emptySessionPath ="true"
enableLookups ="false" redirectPort ="8443" acceptCount ="100"
connectionTimeout ="20000" disableUploadTimeout ="true" />
其他版本要摸索一下,道理与此类同。
刚查到一个各web容器的端口的文章:
Tomcat,Jboss,Oracle端口号的修改
2、JBOSS服务的启动、停止
$JBOSS_HOME以及%JBOSS_HOME%为jboss在linux、win下安装的路径,如果配置了,直接照样引用即可。
启动:
1、for linux: $JBOSS_HOME /bin/run.sh
2、for win :%JBOSS_HOME%/bin/run.bat
关闭/停止:
1、for linux: $JBOSS_HOME /bin/ shutdown.sh –S
2、for win :%JBOSS_HOME%/bin/ shutdown –S
可以用tail –f $JBOSS_HOME /server/default/log/server.log来查看jboss服务的启动或停止的信息。
本文转自 tianya23 51CTO博客,原文链接:http://blog.51cto.com/tianya23/288005,如需转载请自行联系原作者