1、登录console
2、选择“Security Realms”,如果是中文控制台,对应选择“安全领域”,点击myrealm
3、选择Users and Groups--点击“用户名”,如果是中文控制台,对应选择“用户和组”—点击“用户名”
4、选择Passwords,在密码框里输入新密码,点击Save。如果是中文控制台,对应选择“口令”,在密码框输入新密码,点击保存。
保存后立即生效,即你退出后即能以新密码登录。
5、cd ?/weblogic/domain/TPP_domain/security ????键入如下命令(最后有个点.),请注意这一步很重要,没有这步会报
java.lang.SecurityException:User:weblogic,failed to be authenticated
备份mv ?DefaultAuthenticatorInit.ldift ???DefaultAuthenticatorInit.ldift.bak
java ?-classpath ?/weblogic/wlserver_10.3/server/lib/weblogic.jar ???weblogic.security.utils.AdminAccount ???weblogic ??newpassword ??.
6、 ?修改boot.proerties
(1)cd ?/weblogic/domain/TPP_domain/servers/
(2)分别备份AdminServer、innermanagerServer、paymentServer、merchantServer的boot.proerties为boot.properties.bak
(3)然后分别vim boot.properties ?????写入如下内容密码是第4步改好的密码。
username=weblogic
password=newpassword
(4)然后重启AdminServer、innermanagerServer、paymentServer、merchantServer这些应用。
重启操作如下:
【1】停止merchant应用:cd ?/weblogic/domain/TPP_domain/bin/ ???执行 ./stopManagedWeblogicsh ??merchantServer
切换目录 cd ?/weblogic/domain/TPP_domain/servers/merchantServer
rm ??-rf ?cacahe/ ??stage/ ???tmp/
【2】 停止payment应用:cd ?/weblogic/domain/TPP_domain/bin/ ???执行 ./stopManagedWeblogicsh ??paymentServer
切换目录 cd ?/weblogic/domain/TPP_domain/servers/paymentServer
rm ??-rf ?cacahe/ ??stage/ ???tmp/
【3】停止innermanager应用:cd ?/weblogic/domain/TPP_domain/bin/ ???执行 ./stopManagedWeblogicsh ??innermanagerServer
切换目录 cd ?/weblogic/domain/TPP_domain/servers/ innermanagerServer
rm ??-rf ?cacahe/ ??stage/ ???tmp/
【4】停止AdminServer: ??cd ?/weblogic/domain/TPP_domain/bin/
执行./stopWebLogic.sh ?????
【5】启动cd /weblogic/domain/TPP_domain/bin/
分别启动:
先启动AdminServer ?
cd ?/weblogic/domain/TPP_domain/bin/
nohup ?./startWebLogic.sh ?& ?
2分钟后启动innermanagerServer
cd ?/weblogic/domain/TPP_domain/bin/
nohup ?./startManagedWebLogic.sh ?innermanagerServer ?> /dev/null ??2>&1 & ?
网页登陆验证
2分钟后启动merchantServer
cd ?/weblogic/domain/TPP_domain/bin/
nohup ?./startManagedWebLogic.sh ?merchantServer ?> /dev/null ??2>&1 & ?
验证后
2分钟后启动paymentServer
cd ?/weblogic/domain/TPP_domain/bin/
nohup ?./startManagedWebLogic.sh ?paymentServer ?> /dev/null ??2>&1 & ?
weblogic修改应用服务器启动密码
原文地址:http://blog.51cto.com/babyhanggege/2175307