[JBoss] - setting up the environment

Installation Java and the like disposed JAVA_HOME step skipped.

 

1, go to the official website to download jboss:

http://jbossas.jboss.org/downloads/

Used here is 7.1.1 final, jboss version 4.0 has changed a lot over the past has been to use 4.0 to version 7 of a sudden it seems like to be re-learned. . . . -_- #

 

2, extract the zip bag. Open Directory modify the port:

(Default port 8080, if the need to modify the port, this step can be skipped)

Open the file: .... \ jboss-as-7.1.1.Final \ standalone \ configuration \ standalone.xml

As shown, I took him to revise 8899

 

3, add users, open cmd, cd to the directory jboss: \ jboss-as-7.1.1.Final \ bin

Run: add-user.bat

Enter your user name and password to create an admin user:

 

4, run jboss, after you create a user, enter the command:

standalone.bat

We will come forward to the following results:

 

5, open the browser, enter the address: http: // localhost: 8899 /

Jboss welcome screen appears, has been proved to work up:

 

6, the test user created in step 3, click on the Welcome screen "Administration Controle" link, or go to this address: http: // localhost: 9990 / console

Enter the newly created user name and password into the login will see the following interface:

This is the jboss admin interface, similar to the tomcat manage interface features.

(Here, jboss environment has been completed structures)


 

By default, the project is the use of war released jboss7 packet mode releases, and very different from the previous 4.0, using the war package release, simply copy the package to make war \ jboss-as-7.1.1.Final \ under standalone \ deployments directory, run jboss automatically deployed (in fact hot-deploy).

But very often we do not like war released, but the use of folders Release, you can use the following way to do jboss release of:

假设有一个需要发布的完整web应用程序,文件夹名为:solr

1、停止已经启动的jboss(ctrl + C)

2、复制solr到\jboss-as-7.1.1.Final\standalone\deployments目录下

3、重命名solr文件夹为:solr.war

4、新建一个文本文件:solr.war.deployed,内容为:solr.war

5、启动jboss即可。


 

 

Jboss停止命令:

jboss-cli.bat --connect --command=:shutdown

Guess you like

Origin blog.csdn.net/zzq105_/article/details/76161433