【发布时间】:2020-09-19 08:58:31
【问题描述】:
首先,我将创建一个启动并运行的服务器列表并将它们写入一个文本文件,然后我想立即关闭列表中的所有服务器,然后一次重新启动所有服务器
【问题讨论】:
标签: weblogic12c wlst
首先,我将创建一个启动并运行的服务器列表并将它们写入一个文本文件,然后我想立即关闭列表中的所有服务器,然后一次重新启动所有服务器
【问题讨论】:
标签: weblogic12c wlst
## connect the Admin server first
connect('<username>','<PASSWD>','t3://ip:port')
## if applications are running u can use this
stopApplication('<appname>')
stopApplication('<appname>')
stopApplication('<n....>')
## if you want to delete the applications u please follow below thing
edit()
startEdit()
undeploy('<appname>',timeout=60000)
undeploy('<n...>',timeout=60000)
save()
activate()
shutdown('<manageservername>','Server')
shutdown('<managesername'>,'Server)'
shutdown('<n....>','Server')
shutdown('<AdminServer>','Server')
disconnect()
exit()
####for servers starting follow reverse order.
connect('<username>','<PASSWD>','t3://ip:port')
start('<manageservername>');
.
.
.
.
.
【讨论】: