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.
    
    
  • 相关阅读:
    解决php中Cannot send session cache limiter 的问题的方法 (转载)
    手机网页学习(转载)
    在PC上测试移动端网站和模拟手机浏览器的5大方法 (转载)
    php 中使用json(转载)
    String.format("%0"+length+"d", long)说明
    php查询一条数据 while少一条查询数据不显示
    mysql数据安装(装载)
    mysql File '/var/lib/mysql/txtdata/yz2014_1.txt' not found (Errcode: 13 "Permission denied")
    VS2015+Qt新建项目后出现红波浪线
    VS2015报错:无法打开头文件"windows.h"
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348787.html
Copyright © 2011-2022 走看看