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和密碼,登錄管理後臺成功

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章