jboss 报错处理及端口修改

 执行文件 ./shutdown.sh -S 后 重启jboss 执行 ./run.sh -Djboss.bind.address=192.168.132.129 &

如果一台机器安装多个jboss服务器,就需要修改服务器的端口号,否则各个服务器之间会有冲突。
目前确认需要修改的配置如下
一、vi $JBOSS_HOME/server/default/conf/jboss-service.xml
1、WebService端口    <mbean code="org.jboss.web.WebService"       name="jboss:service=WebService">       <attribute name="Port">8083</attribute>
2、JNDI端口:    <mbean code="org.jboss.naming.NamingService"       name="jboss:service=Naming"      
xmbean-dd="resource:xmdesc/NamingService-xmbean.xml">
<attribute name="Port">1099</attribute>
<attribute name="Port">1098</attribute>
3、RMI端口:    <mbean code="org.jboss.invocation.jrmp.server.JRMPInvoker"       name="jboss:service=invoker,type=jrmp">      
<attribute name="RMIObjectPort">4444</attribute>    </mbean>   
<mbean code="org.jboss.invocation.pooled.server.PooledInvoker"       name="jboss:service=invoker,type=pooled"> <attribute name="ServerBindPort">4445</attribute>    </mbean>
二、vi $JBOSS_HOME/server/default/deploy/jboss-web.deployer/server.xml 1、HTTP端口:    <Connector port="8080" address="${jboss.bind.address}"/>    <Connector port="8009" address="${jboss.bind.address}"/>
三、vi $JBOSS_HOME/server/default/deploy/jms/uil2-service.xml 1、JMS:      <mbean code="org.jboss.mq.il.uil2.UILServerILService">           <attribute name="ServerBindPort">8093</attribute>
 
四、修改jboss默认端口 :
                vim  jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/server.xml
       配置修改: <Connector protocol="HTTP/1.1" port="8080" address="${0.0.0.0}"   ###端口及可以让外部访问
                           connectionTimeout="20000" redirectPort="8443" />
posted @ 2017-09-11 16:58  蜗牛·哥  阅读(482)  评论(0编辑  收藏  举报