`

Centos6.4 JBoss7.1控制台add-user.sh报错 JBAS015238: Username must not match the passw

阅读更多

今天在给jboss7.1控制台新建用户老是报错,如下:

[czhwin@chenle 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):

Enter the details of the new user to add.
Realm (ManagementRealm) : admin
Username : admin
Password :
Re-enter Password :

 * Error *
JBAS015238: Username must not match the password.
原因是用了admin用户名,密码也是admin,JBoss7认为太简单了,后来换了个密码就可以了,如下:

1,首先把jboss-as-7.1.1.Final/standalone/configuration/mgmt-users.properties和/jboss-as-7.1.1.Final/domain/configuration/mgmt-users.properties 这两个文件中#admin=*******************,这行给删除,不删除到话,新建admin用户就会有报错"JBAS015243: The user 'admin' already exists in at least one properties file."

2.下面新建admin用户

[czhwin@chenle 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.
Realm (ManagementRealm) :
Username : admin
Password :
Re-enter Password :
The username 'admin' is easy to guess
Are you sure you want to add user 'admin' yes/no? yes
About to add user 'admin' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'admin' to file '/home/czhwin/tools/jboss-as-7.1.1.Final/standalone/configuration/mgmt-users.properties'
Added user 'admin' to file '/home/czhwin/tools/jboss-as-7.1.1.Final/domain/configuration/mgmt-users.properties'


3.http://localhost:9990 输入admin和密码,登录管理后台成功

0
2
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics