Solve the problem of not entering the user name and password when starting WebLogic

one. Windows version

Add a file named D:\Oracle\Middleware\user_projects\domains\dpi_search\dpi_search\servers\AdminServer\security\ boot.properties to the weblogic domain directory , you need to create a new security directory and a boot.properties file , and use Notepad to open boot .properties file, add username and password plaintext to the file

username=username  

password=the password you want to enter  

 

username=用户名

 

password=您想要输入的密码

   

Then save it. This way you don't have to add it every time you start it. Then quickly restart weblogic and the username and password of boot.properties become ciphertext

#Wed Aug 03 13:21:35 CST 2016
password={AES}4UeSPt+bibMG+kWifg3OqfOl4C3++41tfKGd+/oX2NI\=
username={AES}cfGOJ72OtgvWbE8aMCerH+U3R3sKf1JUbq3JiR9Cap4\=

 

two. Linux version

There are two common approaches:

1. Modify the startup script of WebLogic and fill in the username and password in it

2. Add the boot.properties file and save the username and password (recommended method)

The operation steps of the two methods will be described in detail here.

accomplish

 

1. Modify the startup script of WebLogic, that is, modify startWebLogic.sh, and add the following content:

WLS_USER="weblogic"

export WLS_USER

WLS_PW="password"

export WLS_PW

 

2. Save the user name and password information to the boot.properties file, in the AdminServer and ManagedServer directories (for example: /home/oracle/u01/Middleware/user_projects/domains/portal_domain/servers/AdminServer/), create a new security folder, And create a boot.properties file in it, fill in the following content:

username=weblogic

password=password

(It will be encrypted automatically after the server is started once)

 

Restart the AdminServer, the server starts normally, and find that the information in the boot.properties file has been encrypted:

 

For ManagedServer, the same method is adopted to avoid the problem of entering the user name and password each time it is started, which will not be repeated here. ,

   

Background start: nohup xxx &

   

After weblogic is installed, if you have not used it for a long time and forget the user name or password to access the console, you can reset the user name and password through the following steps.

Version: WebLogic Server 11g

Description: %DOMAIN_HOME%: refers to the WebLogic Server domain (Domain) directory,
such as the root directory of my domain for testing DOMAIN_HOME=D:/bea10/user_projects/domains/testcluster_domain

1. In order to ensure safe operation, backup% DOMAIN_HOME%/security/DefaultAuthenticatorInit.ldift

2. Enter the %DOMAIN_HOME%/security directory and execute the following command:

java -classpath D:/bea10/wlserver_10.0/server/lib/weblogic.jar weblogic.security.utils.AdminAccount <NewAdminUserName > <NewAdminPassword> .

For example:

open a cmd window, enter D:/bea/user_projects/domains/base_domain/security
and execute java -classpath D:/bea/wlserver_10.3/server/lib/weblogic.jar weblogic.security.utils .AdminAccount weblogic weblogic .Features

Note that there is a "." at the end, a space and a dot.

This command will generate a new DefaultAuthenticatorInit.ldift file overwriting the original one.

3. Enter the AdminServer directory of the management server, such as: %DOMAIN_HOME%/servers/AdminServer. Rename the data directory in it, such as: data_old. Or back up elsewhere.

4. Modify the boot.properties file of the management server, such as: %DOMAIN_HOME%/servers/AdminServer/security /boot.properties, modify the user name and password (in plain text, the plain text will be encrypted when the server is started for the first time), It must be the same
as the username and password in the above command .

Example: After modification:
username=weblogic
password=weblogic

5. After restarting the server, you can log in to the management console with the user weblogic.

After the first boot, the username password in %DOMAIN_HOME%/servers/AdminServer/security/boot.properties is encrypted as:

#Tue Feb 07 09:55:44 CST 2012
password={AES}eCAESwlBym9A6ZI6HMOSf1ACl85BwDDouZ2+FaamP1s\=
username ={AES}YVuNv07/Yi3EjhDUoUjWl/S1jUDamfLpm9/iXAb3gto\=

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326524573&siteId=291194637