wildfly 管理控制台使用教程

原文链接: https://my.oschina.net/zhaoqian/blog/2992356

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

确认配置


        
        
        
        
        
        
        
        
            
        
    

进入配置文件确认管理端口.如上,我们使用https--9993 需要额外的进行一些配置.但http不需要,直接就可以使用.

使用https 9993的配置说明 [如果只需要http 9990,就不需要配置这个]

搜索到


再在这个节点下添加TLS的相关配置(生产环境需添加自定义的keystore),如下所示:

 
                    
                        
                        
                    
                

其次,找到如下节点,修改如下(新增https="management-https")


            
                
            
        

启动服务,以及进入页面

如果配置正确,启动后将如下显示:

11:03:28,787 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0062: Http management interface listening on http://127.0.0.1:9990/management and https://127.0.0.1:9993/management
11:03:28,790 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0053: Admin console listening on http://127.0.0.1:9990 and https://127.0.0.1:9993

出现上述日记信息就是表示我们的设置正确. 然后使用上述连接进入管理台. 这个时候应该会跳转到一个error页面.

https://localhost:9993/error/index_win.html

这个页面是提示你没有用户,需要你手动去创建用户.

添加用户

进入目录 wildfly-10.1.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 details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : credo
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 :
WFLYDM0098: The password should be different from the username
Are you sure you want to use the password entered yes/no? y
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 'credo' for realm 'ManagementRealm'
Is this correct yes/no? y
Added user 'credo' to file 'D:\software\wildfly-10.1.0.Final-rePack_v3.1\wildfly-10.1.0.Final-rePack_v3.1\wildfly-10.1.0.Final\standalone\configuration\mgmt-users.properties'
Added user 'credo' to file 'D:\software\wildfly-10.1.0.Final-rePack_v3.1\wildfly-10.1.0.Final-rePack_v3.1\wildfly-10.1.0.Final\domain\configuration\mgmt-users.properties'
Added user 'credo' with groups  to file 'D:\software\wildfly-10.1.0.Final-rePack_v3.1\wildfly-10.1.0.Final-rePack_v3.1\wildfly-10.1.0.Final\standalone\configuration\mgmt-groups.properties'
Added user 'credo' with groups  to file 'D:\software\wildfly-10.1.0.Final-rePack_v3.1\wildfly-10.1.0.Final-rePack_v3.1\wildfly-10.1.0.Final\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? y
To represent the user add the following to the server-identities definition 
请按任意键继续. . .

添加完成.重新进刚才的页面. 将进入 https://localhost:9993/console/App.html

使用

页面弹出个basic auth的输入框,输入你的账号密码就可以了.

转载于:https://my.oschina.net/zhaoqian/blog/2992356

你可能感兴趣的:(wildfly 管理控制台使用教程)