<!-- double jboss startup to config "XXXXX" -->
一、copy default文件夹为XXXXX,后修改端口号,避免启动冲突,建议原值增加100(如8080改为8180),
1.1)/server/XXXXX/deploy/jboss-web.deployer/server.xml 将默认的8080,8009,8443修改
<Connector port="8080" address="0.0.0.0"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<Connector port="8009" address="${jboss.bind.address}" protocol="AJP/1.3"
emptySessionPath="true" enableLookups="false" redirectPort="8443" />
<attribute name="Port">8084</attribute>
二、修改启动项参数
2.1)修改XXXXX/conf/jboss-service.xml文件,去除如下代码的注释
<mbean code="org.jboss.services.binding.ServiceBindingManager"
name="jboss.system:service=ServiceBindingManager">
<attribute name="ServerName">ports-01</attribute>
<attribute name="StoreURL">${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute>
<attribute name="StoreFactoryClassName">
org.jboss.services.binding.XMLServicesStoreFactory
</attribute>
</mbean>
三、复制startup.sh启动脚本
# Display our environment
while true; do
if [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "x" ]; then
# Execute the JVM in the foreground
"$JAVA" $JAVA_OPTS \
-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-classpath "$JBOSS_CLASSPATH" \
# 修改启动项参数 org.jboss.Main "$@"
org.jboss.Main -c XXXXX"$@"
JBOSS_STATUS=$?
一、copy default文件夹为XXXXX,后修改端口号,避免启动冲突,建议原值增加100(如8080改为8180),
1.1)/server/XXXXX/deploy/jboss-web.deployer/server.xml 将默认的8080,8009,8443修改
<Connector port="8080" address="0.0.0.0"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<Connector port="8009" address="${jboss.bind.address}" protocol="AJP/1.3"
emptySessionPath="true" enableLookups="false" redirectPort="8443" />
1.2)JBoss_home/server/XXXXX/conf/jboss-service.xml修改8083,1098,1099,4444,4445
1099为JNP服务端口
端口值<attribute name="Port">8084</attribute>
二、修改启动项参数
2.1)修改XXXXX/conf/jboss-service.xml文件,去除如下代码的注释
<mbean code="org.jboss.services.binding.ServiceBindingManager"
name="jboss.system:service=ServiceBindingManager">
<attribute name="ServerName">ports-01</attribute>
<attribute name="StoreURL">${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute>
<attribute name="StoreFactoryClassName">
org.jboss.services.binding.XMLServicesStoreFactory
</attribute>
</mbean>
三、复制startup.sh启动脚本
# Display our environment
while true; do
if [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "x" ]; then
# Execute the JVM in the foreground
"$JAVA" $JAVA_OPTS \
-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-classpath "$JBOSS_CLASSPATH" \
# 修改启动项参数 org.jboss.Main "$@"
org.jboss.Main -c XXXXX"$@"
JBOSS_STATUS=$?
四、关闭服务脚本参数
#jnp端口默认值为1099,不需加参数
shutdown.sh -s jnp://localhost:1199