Two ways to avoid entering the boot username and password in very Weblogic Serve

Two ways to avoid entering the boot username and password in very Weblogic Server startup

1.setting "WLS_USER" and "WLS_PW" in "$DOMAIN_HOME/bin/startWebLogic.sh" file.

 

.......

WLS_USER="wlsadmin"

WLS_PW="weblogic"

 

if [ "${WLS_USER}" != "" ] ; then

        JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.management.username=${WLS_USER}"

be

 

if [ "${WLS_PW}" != "" ] ; then

        JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.management.password=${WLS_PW}"

.......

 

 

 

2.creating the boot.properties file

#cd $DOMAIN_HOME/server/PROD_AdminServer

#mkdir security

#cd security

#echo -ne "username=wlsadmin\npassword=<password>" > boot.properties

#cat boot.properties

username=wlsadmin

password=<password>

 

The next time you start Weblogic Administration Server, it will use the credentials from the boot.properties file. The file will also be encrypted.

Guess you like

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