CentOS Install JBoss 7 as method: (Install Java skip)
1. Download the zip file for JBoss 7 as first.
2, use SSH, upload to CentOS. (How to use the wget command download, you can skip a few steps), here upload to the/home directory
3, CD to/home, unzip the zip file.
Command: Unzip Jboss-as-7.1.1.final.zip
4. Start JBoss. CD to directory:/home/jboss-as-7.1.1.final/bin
Command: SH standalone.sh &
Modify JBoss to external access method:
Open File:/home/jboss-as-7.1.1.final/standalone/configuration/standalone.xml
<Interfacename= "Management"> <inet-addressvalue= "${jboss.bind.address.management:127.0.0.1}"/> </Interface> <Interfacename= "Public"> <inet-addressvalue= "${jboss.bind.address:127.0.0.1}"/> </Interface>
Set 127.0.0.1 to the corresponding IP.
Modify the port of JBoss to 80 method:
Open File:/home/jboss-as-7.1.1.final/standalone/configuration/standalone.xml
<name= "http" port= "8080"/>
Set 8080 to 80.
Similarly, JBoss's management port is 9990.
To stop JBoss command:
Entry directory:/home/jboss-as-7.1.1.final/bin
sh jboss-cli. sh --connect Command=:shutdown &
Since CentOS has a firewall open by default, 80 ports are inaccessible, open the CentOS 80 port method, see this:
Http://www.cnblogs.com/HD/p/4011323.html
To add JBoss to the boot Start method:
Http://www.cnblogs.com/HD/p/4011479.html
[Linux] Installation Jboss-centos