5.JBoss安装在防火墙后的调整
5.1.在防火墙上开放1099、1098、4444三个端口
5.2.修改jboss-service.xml 文件
注释掉红体字的语句
<attribute name="Port">1099</attribute>
<attribute name="BindAddress">${jboss.bind.address}</attribute>
<attribute name="Port">1098</attribute>
<attribute name="RmiBindAddress">${jboss.bind.address}</attribute>
<attribute name="Port">4444</attribute>
<attribute name="ServerAddress">${jboss.bind.address}</attribute>
5.3.修改JBoss的启动文件run.sh,添加绿色的两行参数。
# Execute the JVM
"$JAVA" $JAVA_OPTS /
-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" /
-Djava.rmi.server.hostname=external_host_ip /
-Djava.rmi.server.useLocalHostname=false /
-classpath "$JBOSS_CLASSPATH" /
org.jboss.Main "$@"
STATUS=$?