恢复WebLogic密码

本文介绍了一种恢复WebLogic服务器管理密码的方法,包括设置环境变量、运行Java程序创建新用户及密码、更新配置文件等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face {font-family:"/@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:宋体; mso-bidi-font-family:"Times New Roman"; mso-font-kerning:1.0pt;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; mso-ascii-font-family:Calibri; mso-fareast-font-family:宋体; mso-hansi-font-family:Calibri; mso-font-kerning:0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->

恢复WebLogic密码

1. 设置环境变量

运行C:/bea-8.1.5/user_projects/domains/mydomain/setEnv.cmd

 

2. 在命令行界面(系统Console)下运行Java程序

java weblogic.security.utils.AdminAccount admin  weblogic  .

注意最后的那个点“.”,表示当前目录,运行后在当前目录产生DefaultAuthenticatorInit.ldift文件, 这样就新建了一个用户名为admin,密码是weblogic的管理用户。

有了DefaultAuthenticatorInit.ldift文件,boot.properties的优先级就降低了,WebLogic启动的时候以DefaultAuthenticatorInit.ldift为准。

 

java weblogic.security.utils.AdminAccount adminuser weblogic .

3. 删除C:/bea-8.1.5/user_projects/domains/mydomain/myserver/ldap目录下的DefaultAuthenticatormyrealmInit.initialized文件。

 

4. 启动WebLogic服务器,DefaultAuthenticatormyrealmInit.initialized会自动重新生成。

 

5. 修改boot.properties文件,用明码改写:

password=admin

username=weblogic

 

6. 重启WebLogic服务器,你会发现boot.properties中的字段相关已经加密了。

 

7. 这时DefaultAuthenticatorInit.ldift文件已经完成它的使命了,可以删除掉。

 

8.可以用新的admin/weblogic来登陆WebLogic Console了,在“安全性/领域/myrealm/用户”中修改Password,或增加新的用户。

WebLogic用户管理

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

kingspider-sh

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值