今天装了jboss7,与jboss6差别挺大。不能像6那样加上启动参数--configuration=standard -b 0.0.0.0。
我就用的standalone模式,修改/standalone/configuration/standalone.xml。如下
修改或新增一个interface。
<interfaces> <interface name="management"> <inet-address value="${jboss.bind.address.management:127.0.0.1}"/> </interface> <interface name="public"> <inet-address value="${jboss.bind.address:127.0.0.1}"/> </interface> <!-- added begin --> <interface name="any"> <any-ipv4-address/> </interface> <!-- added end --> </interfaces>
修改以下设置,即修改访问控制,由原来的127.0.0.1改为any ip
<!-- modify <socket-binding-group name="standard-sockets" default-interface="public"> --> <socket-binding-group name="standard-sockets" default-interface="any"> <socket-binding name="http" port="8080"/> <socket-binding name="https" port="8443"/> <socket-binding name="jmx-connector-registry" interface="management" port="1090"/> <socket-binding name="jmx-connector-server" interface="management" port="1091"/> <socket-binding name="jndi" port="1099"/> <socket-binding name="osgi-http" interface="management" port="8090"/> <socket-binding name="remoting" port="4447"/> <socket-binding name="txn-recovery-environment" port="4712"/> <socket-binding name="txn-status-manager" port="4713"/> </socket-binding-group>
另外,我用的redhat的操作系统,还得在防火墙设置中开启8080端口。
此外,jboss7的后台操作界面是在端口9990下面。