Java应用服务器WildFly(4)

2015-09-29 11:20:42,209 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) WFLYDS0013: Started FileSystemDeploymentService for directory /opt/wildfly/standalone/deployments

2015-09-29 11:20:42,510 INFO  [org.jboss.ws.common.management] (MSC service thread 1-1) JBWS022052: Starting JBoss Web Services - Stack CXF Server 5.0.0.Final

2015-09-29 11:20:42,890 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on :9990/management

2015-09-29 11:20:42,893 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on :9990

2015-09-29 11:20:42,894 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 9.0.1.Final (WildFly Core 1.0.1.Final) started in 6225ms - Started 203 of 379 services (210 services are lazy, passive or on-demand)

四、测试(clientB)

1、输入10.1.10.185:8080后看到页面出来了

Java应用服务器WildFly

10.1.10.185:9990后看到管理页面

Java应用服务器WildFly


3、添加管理者

cd /opt/wildfly/bin

./add-user.sh

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 details of the new user to add.

Using realm 'ManagementRealm' as discovered from the existing property files.

Username : admin

The username 'admin' is easy to guess

Are you sure you want to add user 'admin' yes/no? yes

Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.

- The password should be different from the username

- The password should not be one of the following restricted values {root, admin, administrator}

- The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)

Password :

WFLYDM0099: Password should have at least 8 characters!

Are you sure you want to use the password entered yes/no? yes

Re-enter Password :

What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[  ]:

About to add user 'admin' for realm 'ManagementRealm'

Is this correct yes/no? yes

Added user 'admin' to file '/opt/wildfly/standalone/configuration/mgmt-users.properties'

Added user 'admin' to file '/opt/wildfly/domain/configuration/mgmt-users.properties'

Added user 'admin' with groups  to file '/opt/wildfly/standalone/configuration/mgmt-groups.properties'

Added user 'admin' with groups  to file '/opt/wildfly/domain/configuration/mgmt-groups.properties'

Is this new user going to be used for one AS process to connect to another AS process?

e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.

yes/no? yes

To represent the user add the following to the server-identities definition <secret value="cmVkaGF0" />

PS:根据提示创建管理用户

Java应用服务器WildFly

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/af5d3db2a099b7a50aa3d5460619a68e.html