JBoss is a pure Java EJB (Enterprise JavaBean) server.
1. Download and install http://jbossas.jboss.org/downloads/
What I downloaded is: JBoss AS7.1.1.Final
2. Unzip the installation package D:\Java\jboss-as-7.1.1.Final
Create a new one in the environment variable: JBOSS_HOME
JBOSS_HOME: D:\Java\jboss-as-7.1.1.Final
Add to PATH: %JBOSS_HOME%\bin;
3. Before running jboss, first add a user, add-user, find add-user.bat in the bin directory of JBoss to run
4. Test JBOSS
Open standalone.bat under the %JBOSS_HOME%\bin directory to start JBOSS, and then enter http://127.0.0.1:8080 in the browser to see the JBOSS welcome interface, which means the installation is successful; if the JBOSS welcome interface does not appear, the reason is the port If the number conflicts, you can modify the corresponding port number in the standalone.xml configuration file in D:\Java\jboss-as-7.1.1.Final\standalone\configuration.
The above page appears to indicate that the startup is successful. After clicking Administration Console on the page, enter the user name (root) and password (123456) you just set in the pop-up input box to enter the jboss console, as shown below:
JBOSS console address: http://127.0.0.1:9990
Notice:
JBoss AS7.1.1.Final does not support JDK1.8 version. At this time, JBoss cannot start normally. For detailed analysis, please click
5. Service deployment
Copy the war file to be deployed to D:\Java\jboss-as-7.1.1.Final\standalone\deployments, and then enter http://localhost:8080/Jboss-demo/ in the browser to serve visited.
6. Set access via ip address (LAN or public network access)
Modify the value address of the attribute inet-address whose interface name is public in the standalone.xml configuration file in D:\Java\jboss-as-7.1.1.Final\standalone\configuration; then add the attribute default to socket-binding-group -interface="public" can
7. Start and stop
Start, DOS command D:\Java\jboss-as-7.1.1.Final\bin>standalone.bat
stop, CMD command line interface press Ctrl + C
Reference documents:
1. https://blog.csdn.net/yangshijin1988/article/details/69258251