当前位置:首页 > 开发 > 研发管理 > 正文

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

发表于: 2014-12-11   作者:crabdave   来源:转载   浏览:
摘要: 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.

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.

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

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号