Install JDK1.6 version, refer to Link
! Attention must be installed jdk1.6 version, supporting talent and Jboss7, otherwise start Jboss be wrong
Jboss 7 AS CentOS installation method:
1, first download JBoss 7 AS zip file.
https://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.zip
2, uploaded to CentOS / home directory
3-extracting zip file
cd / Home
the unzip jboss-as-7.1.1.Final.zip
4, start jboss.
/home/jboss-as-7.1.1.Final/bin cd
SH & standalone.sh
Modify jboss external access methods:
vi /home/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
<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>
The corresponding IP 127.0.0.1 to set.
The modified jboss port 80 Method:
VI /home/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
Similarly, jboss management port is 9990.
Opening the firewall port 80
VI / etc / sysconfig / iptables
-A 80 --dport the INPUT -j ACCEPT -p TCP
-Service the restart iptables
Jboss stop command:
cd /home/jboss-as-7.1.1.Final/bin
SH jboss-cli.sh --connect the Command =: the shutdown &