zoukankan      html  css  js  c++  java
  • wlst脚本调用

    cd /app/weblogic/wlserver/server/bin
    
    [sence@zjtlcb bin]$ sh ./setWLSEnv.sh 
    CLASSPATH=/app/sence_apiweb/jdk1.8.0_144/lib/tools.jar:/app/weblogic/wlserver/modules/features/wlst.wls.classpath.jar:.:/app/sence_apiweb/jdk1.8.0_144/lib/dt.jar:/app/sence_apiweb/jdk1.8.0_144/lib/tools.jar
    
    PATH=/app/weblogic/wlserver/server/bin:/app/weblogic/wlserver/../oracle_common/modules/thirdparty/org.apache.ant/1.9.8.0.0/apache-ant-1.9.8/bin:/app/sence_apiweb/jdk1.8.0_144/jre/bin:/app/sence_apiweb/jdk1.8.0_144/bin:/app/sence_apiweb/jdk1.8.0_144/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/sence/bin:/app/weblogic/wlserver/../oracle_common/modules/org.apache.maven_3.2.5/bin
    
    Your environment has been set.
    [sence@zjtlcb bin]$ export CLASSPATH=/app/sence_apiweb/jdk1.8.0_144/lib/tools.jar:/app/weblogic/wlserver/modules/features/wlst.wls.classpath.jar:.:/app/sence_apiweb/jdk1.8.0_144/lib/dt.jar:/app/sence_apiweb/jdk1.8.0_144/lib/tools.jar
    [sence@zjtlcb bin]$ export PATH=/app/weblogic/wlserver/server/bin:/app/weblogic/wlserver/../oracle_common/modules/thirdparty/org.apache.ant/1.9.8.0.0/apache-ant-1.9.8/bin:/app/sence_apiweb/jdk1.8.0_144/jre/bin:/app/sence_apiweb/jdk1.8.0_144/bin:/app/sence_apiweb/jdk1.8.0_144/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/sence/bin:/app/weblogic/wlserver/../oracle_common/modules/org.apache.maven_3.2.5/bin
    [sence@zjtlcb bin]$ 
    [sence@zjtlcb bin]$ set -o vi
    [sence@zjtlcb bin]$ java weblogic.WLST
    
    Initializing WebLogic Scripting Tool (WLST) ...
    
    Welcome to WebLogic Server Administration Scripting Shell
    
    Type help() for help on available commands
    
    wls:/offline> exit()
    
    
    Exiting WebLogic Scripting Tool.
    
    [sence@zjtlcb bin]$ pwd
    /app/weblogic/wlserver/server/bin
    [sence@zjtlcb bin]$ 
    
    [sence@zjtlcb bin]$ cat test1.py 
    from java.util import *
    from javax.management import *
    import javax.management.Attribute
    print 'starting the script .... '
    connect('weblogic','weblogic1','t3://127.0.0.1:7001')
    disconnect()
    print 'End of script ...'
    exit()
    [sence@zjtlcb bin]$  java weblogic.WLST test1.py 
    
    Initializing WebLogic Scripting Tool (WLST) ...
    
    Welcome to WebLogic Server Administration Scripting Shell
    
    Type help() for help on available commands
    
    starting the script .... 
    Connecting to t3://127.0.0.1:7001 with userid weblogic ...
    Successfully connected to Admin Server "AdminServer" that belongs to domain "base_domain".
    
    Warning: An insecure protocol was used to connect to the server. 
    To ensure on-the-wire security, the SSL port or Admin port should be used instead.
    
    Disconnected from weblogic server: AdminServer
    End of script ...
    
    
    Exiting WebLogic Scripting Tool.
    
    
  • 相关阅读:
    Cordova4.0 系列 -- 基本环境搭建(1)
    随便写写2015创业记(三)
    有哪些好用的数据分析工具?
    文字检测识别系统好用吗?都针对什么进行识别?
    用户奖励体系有哪些反作弊的机制?
    1月第2周业务风控关注|“扫黄打非”部门查处互动作业、纳米盒等20多个学习类App
    一个docker容器中运行多个服务还是弄一堆docker容器运行?
    手机app有了短信验证码还有没必要有图片验证码?
    2019年微服务实践第一课,网易&谐云&蘑菇街&奥思技术大咖深度分享
    1月第1周业务风控关注| 国家网信办启动专项行动 剑指12类违法违规互联网信息
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348787.html
Copyright © 2011-2022 走看看