如何让weblogic启动的时候不用输入用户和密码?

1、创建以下目录:
mkdir –p /u03/weblogic/Oracle/Middleware/user_projects/domains/xzxj/servers/AdminServer/security
其中security是要创建的目录,其他的都是存在的。xzxj是域名。
2、编辑boot.properties文件,加入以下内容:
username=weblogic
password=abcd1234
3、更改属性boot.properties文件属性:
chown –R weblogic:bea /u03/weblogic/Oracle/Middleware/user_projects/domains/xzxj/servers/AdminServer/security
完了之后,就可以启动weblogic了。
[root@oracle security]# ../../../bin/startWebLogic.sh
.
.
JAVA Memory arguments: -Xms512m -Xmx512m
.
WLS Start Mode=Production
.
CLASSPATH=/u03/weblogic/Oracle/Middleware/patch_wls1032/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u03/weblogic/Oracle/Middleware/jrockit_160_14_R27.6.5-32/lib/tools.jar:/u03/weblogic/Oracle/Middleware/utils/config/10.3/config-launch.jar:/u03/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/u03/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/u03/weblogic/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.2.0.jar:/u03/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/u03/weblogic/Oracle/Middleware/modules/org.apache.ant_1.7.0/lib/ant-all.jar:/u03/weblogic/Oracle/Middleware/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar:/u03/weblogic/Oracle/Middleware/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/u03/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/xqrl.jar
.
PATH=/u03/weblogic/Oracle/Middleware/wlserver_10.3/server/bin:/u03/weblogic/Oracle/Middleware/modules/org.apache.ant_1.7.0/bin:/u03/weblogic/Oracle/Middleware/jrockit_160_14_R27.6.5-32/jre/bin:/u03/weblogic/Oracle/Middleware/jrockit_160_14_R27.6.5-32/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
starting weblogic with Java version:
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
BEA JRockit(R) (build R27.6.5-32_o-121899-1.6.0_14-20091001-2113-linux-ia32, compiled mode)
Starting WLS with line:
/u03/weblogic/Oracle/Middleware/jrockit_160_14_R27.6.5-32/bin/java -jrockit   -Xms512m -Xmx512m -Dweblogic.Name=AdminServer -Djava.security.policy=/u03/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.policy   -da -Dplatform.home=/u03/weblogic/Oracle/Middleware/wlserver_10.3 -Dwls.home=/u03/weblogic/Oracle/Middleware/wlserver_10.3/server -Dweblogic.home=/u03/weblogic/Oracle/Middleware/wlserver_10.3/server   -Dweblogic.management.discover=true  -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/u03/weblogic/Oracle/Middleware/patch_wls1032/profiles/default/sysext_manifest_classpath  weblogic.Server
<2010-8-2 下午02时15分20秒 CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with BEA JRockit(R) Version R27.6.5-32_o-121899-1.6.0_14-20091001-2113-linux-ia32 from BEA Systems, Inc.>
<2010-8-2 下午02时15分22秒 CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.2.0  Tue Oct 20 12:16:15 PDT 2009 1267925 >
<2010-8-2 下午02时15分24秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<2010-8-2 下午02时15分24秒 CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<2010-8-2 下午02时15分25秒 CST> <Notice> <Log Management> <BEA-170019> <The server log file /u03/weblogic/Oracle/Middleware/user_projects/domains/xzxj/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.>
<2010-8-2 下午02时15分31秒 CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<2010-8-2 下午02时15分31秒 CST> <Notice> <Security> <BEA-090083> <Storing boot identity in the file: /u03/weblogic/Oracle/Middleware/user_projects/domains/xzxj/servers/AdminServer/security/boot.properties>
<2010-8-2 下午02时15分36秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<2010-8-2 下午02时15分36秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
2010-8-2 14:15:41 com.sun.faces.config.ConfigureListener contextInitialized
信息: Initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/console'
2010-8-2 14:15:41 com.sun.faces.config.ConfigureListener contextInitialized
信息: Completed initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/console'
<2010-8-2 下午02时15分44秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<2010-8-2 下午02时15分44秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<2010-8-2 下午02时15分44秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:20c:29ff:fe01:fd42:7001 for protocols iiop, t3, ldap, snmp, http.>
<2010-8-2 下午02时15分44秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.219.10:7001 for protocols iiop, t3, ldap, snmp, http.>
<2010-8-2 下午02时15分44秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<2010-8-2 下午02时15分44秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
<2010-8-2 下午02时15分44秒 CST> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "AdminServer" for domain "xzxj" running in Production Mode>
<2010-8-2 下午02时15分44秒 CST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<2010-8-2 下午02时15分44秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<2010-8-2 下午02时15分45秒 CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
启动完了之后,boot.properties文件里的内容已经被加密了,如下:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值