WebLogic 11g重設使用者密碼

來源:互聯網
上載者:User

標籤:weblogic 11g重設使用者密碼

weblogic安裝後,很久不用,忘記存取控制台的使用者名稱或者密碼,可通過以下步驟來重設使用者名稱密碼。
版本:WebLogic Server 11g
說明:%DOMAIN_HOME%:指WebLogic Server 域(Domain)目錄
例如我的做測試的域的根目錄 DOMAIN_HOME=D:/bea10/user_projects/domains/testcluster_domain
1.為了保證操作安全,備份%DOMAIN_HOME%/security/DefaultAuthenticatorInit.ldift
2. 進入%DOMAIN_HOME%/security目錄,執行下列命令:
java -classpath D:/bea10/wlserver_10.0/server/lib/weblogic.jar weblogic.security.utils.AdminAccount <NewAdminUserName> <NewAdminPassword> .
例如:
開啟一個cmd視窗,進入D:/bea/user_projects/domains/base_domain/security
執行java -classpath D:/bea/wlserver_10.3/server/lib/weblogic.jar weblogic.security.utils.AdminAccount weblogic weblogic .
特點注意最後有個“ .”,一個空格和一個點。
此命令將產生新的DefaultAuthenticatorInit.ldift檔案(預設路徑C:\Documents and Settings\Administrator下面)覆蓋原來的,Administrator為當前作業系統登入的使用者。
3. 進入管理伺服器的AdminServer目錄,如:%DOMAIN_HOME%/servers/AdminServer。將其中的data目錄重新命名,如:data_old。或者備份到別的地方。
4. 修改管理伺服器的boot.properties檔案,如:%DOMAIN_HOME%/servers/AdminServer/security /boot.properties,修改其中的使用者名稱與密碼(用明文,第一次啟動伺服器時明文將被加密),要和上面命令
中的使用者名稱密碼一致。
例:修改後:
username=weblogic
password=weblogic
5. 重新啟動伺服器後,就可以使用使用者weblogic登入管理主控台了。
第一次啟動後,%DOMAIN_HOME%/servers/AdminServer/security/boot.properties中的使用者名稱密碼被加密為:
#Tue Feb 07 09:55:44 CST 2012
password={AES}eCAESwlBym9A6ZI6HMOSf1ACl85BwDDouZ2+FaamP1s\=
username={AES}YVuNv07/Yi3EjhDUoUjWl/S1jUDamfLpm9/iXAb3gto\=

 

WebLogic 11g重設使用者密碼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.