`
crabdave
  • 浏览: 1277604 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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}"

fi

 

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.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics