当前位置: 首页 > 工具软件 > WebLogic > 使用案例 >

weblogic 使用

通和裕
2023-12-01

1 Weblogic admin用户密码reset

exportMW_HOME=/u01/app/oracle/middleware

exportDOMAIN_HOME=$MW_HOME/user_projects/domains/ClassicDomain

Shut down theWebLogic 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

或者

./setWLSEnv.sh

  • Reset the password using the following command. Remember to substitute the appropriate username and password.

·        $ cd $DOMAIN_HOME/security

$ javaweblogic.security.utils.AdminAccount <username> <password> .

  • Update the "$DOMAIN_HOME/servers/AdminServer/security/boot.properties" file with the new username and password. The file format is shown below.

·        username=<username>

password=<password>

  • Start the WebLogic domain.

$$DOMAIN_HOME/bin/startWebLogic.sh

 


 类似资料: