【问题标题】:how to start/stop weblogic set of managed servers from a given list using wlst如何使用 wlst 从给定列表中启动/停止 weblogic 托管服务器集
【发布时间】:2020-09-19 08:58:31
【问题描述】:

首先,我将创建一个启动并运行的服务器列表并将它们写入一个文本文件,然后我想立即关闭列表中的所有服务器,然后一次重新启动所有服务器

【问题讨论】:

    标签: weblogic12c wlst


    【解决方案1】:
     ## 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>'); 
     .
     .
     .
     .
     .
    

    【讨论】:

      猜你喜欢
      • 2017-08-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-10
      • 1970-01-01
      • 1970-01-01
      • 2016-11-25
      • 1970-01-01
      相关资源
      最近更新 更多