Getting started with wildFly (Jboss as)

content  

Introduction  

Install  

use

Introduction

  JBoss AS has been named wildfly since version 8. JBoss is a pure Java EJB (Enterprise JavaBean) server.

  JBoss As is an open source free server produced by Redhat. It adopts the industry's best open source Java Web engine and Tomcat core as its servlet container engine, which integrates Apache Server and Tomcat.

  It also supports the integration of other Web technologies (php, .net). wildfly openSource only supports java development.

  If the system is not very large and the concurrency is not particularly high, it is recommended to use tomcat. After all, jboss is heavyweight, occupying several ports at the same time, and the startup memory overhead is high. It has advantages in high concurrency in large and medium-sized systems. However, wildFly is lightweight.

  jboss EAP is the enterprise stable version of rebhat, as wildfly will update, fix and upgrade from time to time. But because jboss integrates all functions into one, it has become a burden. 
At present, distributed services and embedded microservices (jetty) have complementary advantages and disadvantages (apache+tomcat, nginx+tomcat),
 so that the number of users who use jboss is decreasing, and it is common in old applications.
In view of the above characteristics, wildFly also keeps pace with the times, and launched wildFly12, which fully supports JAVAEE7, and partially supports JAVAEE8. It can be used as a service cluster and supports http2.0.

  Download address: http://wildfly.org/downloads/    

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

                         http://docs.wildfly.org/Getting_Started_Guide.html (Guide Instructions)

Install

       Find the zip or tar.gz file and download and unzip it.

use

      This primer organizes the guide instructions for wildFly.

       WildFly12 supports Java EE7. We aim to support Java EE8 in the future。

       java : : Java SE 8 or later

      The directory structure under wildfly:

             Standalone The applications stored in this directory will occupy the process independently, and can be started and closed independently without any association.

                                 It has a number of xml files to choose from at startup.

                                standalone.bat -- start command

                            standalone.sh --server-config=standalone-full-ha.xml   --带xml配置文件启动

             domain The applications under this directory are associated with each other, managing multiple servers from a single control point.

                                 domain.bat -- start command                             

               domain.sh --domain-config=my-domain-configuration.xml    --带xml配置文件启动
lib 命令启动位置
modules jboss采用module加载驱动。

            welcome-content welcome page i.e.: http://127.0.0.1:8080/        

       Manage WildFly 12:

      Like tomcat, wildfly also has its own service management page, which can manage applications in a unified way and set permissions for users. First add the manager user add-user.bat

      Select the first administrator user

E:\software\worksoft\wildfly-12.0.0.Final\bin>add-user.bat

What type of user do you wish to add?
 a) Management User (mgmt-users.properties)
 b) Application User (application-users.properties)
(a): a

 

Enter the user name and password (the password cannot be the same as the user name, the password must be at least 8 characters, and the password must include numbers, letters and non-characters).

After entering, you will be asked to select the group that is the role. There are two [PowerUser, BillingAdmin] by default, you can create a new admin super user or others, or you can use the original two.

After completion, the console input will be written to the following file, and the password will be encrypted with hex (md5):

standalone\configuration\mgmt-users.properties

domain\configuration\mgmt-users.properties

standalone\configuration\mgmt-groups.properties

domain\configuration\mgmt-groups.properties

Start the Standalone service:

Enter the URL on the right side of the webpage, enter the account and password just now:      http://127.0.0.1:9990/console/

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326445409&siteId=291194637