[英]how to start/stop weblogic set of managed servers from a given list using 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>');
.
.
.
.
.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.