重置 WebLogic 管理密碼

If you forget the AdminServer password for your WebLogic 11g domain, you can reset it from the command line using the following process.

  • Set up the following environment variables. They are not necessary for the process itself, but will help you navigate. In this case my domain is called "wlsdom". Remember to change the value to match your domain.

    $ export DOMAIN_HOME=~/student/wlsdom
  • Shut down the WebLogic domain
    $ $DOMAIN_HOME/bin/stopWebLogic.sh
  • Rename the data folder.

    $ mv $DOMAIN_HOME/servers/AdminServer/data $DOMAIN_HOME/servers/AdminServer/data-old
  • Set the environment variables.

    $ . $DOMAIN_HOME/bin/setDomainEnv.sh
  • Reset the password using the following command. Remember to substitute the appropriate username and password. Please don't forget the "." at last!

    $ cd $DOMAIN_HOME/security
    $ java weblogic.security.utils.AdminAccount scott tiger000 .
  • Update the"$DOMAIN_HOME/servers/AdminServer/security/boot.properties"file with the new username and password. The file format is shown below.

    username=scott
    password=tiger000
  • Start the WebLogic domain.

    $ $DOMAIN_HOME/bin/startWebLogic.sh

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