linux之weblogic 命令行部署应用

linux之weblogic 命令行部署应用

ws=/Data/nwydsb-gw/weblogic/Oracle/Middleware/wlserver/server/lib

####删除应用
java -cp $ws/weblogic.jar weblogic.Deployer -adminurl t3://127.0.0.1:17003 -user weblogic -password weblogic123 -name abc-index -updeploy 

####发布应用
java -cp $ws/weblogic.jar weblogic.Deployer -adminurl t3://127.0.0.1:17003 -user weblogic -password weblogic123 -name abc-index  -deploy -targets AdminServer -source /Data/nwydsb-gw/gwjar/abc-index.war
where options include:
    -help             Print the standard usage message.            
    -version          Print version information.                   
    -adminurl <<protocol>://<server>:<port>> [option] Administration     
                      server URL: default t3://localhost:7001      
    -username <username> [option] user name                           
    -password <password> [option] password for the user               
    -userconfigfile <userconfigfile> [option] The user config file       
                      contains the user security credentials; it   
                      is administered by the WLST tool.            
    -userkeyfile <keyConfigFile> [option] The users key file; it is      
                      administered by the WLST tool.               
    -distribute       [action] Distribute application to the       
                      targets.                                     
    -start            [action] Makes an already distributed        
                      application available on a target.           
    -stop             [action] Makes an application unavailable on 
                      targets.                                     
    -redeploy         [action] Replace a running application       
                      partially or entirely.                       
    -undeploy         [action] Take an application out of service. 
    -deploy           [action] Make an application available for   
                      service.                                     
    -update           [action] Update an application configuration 
                      in place.                                    
    -examples         [option] Displays example usage of this tool.
    -name <application name> [option] Defaults to the basename of the    
                      deployment file or directory.                
    -targets <<target(s)>> [option] A comma separated list of targets   
                      for the current operation. If not specified, 
                      all configured targets are used. For a new   
                      application, the default target is the       
                      administration server.                       
    -plan <Deployment plan path> [option] Specifies location of          
                      deployment plan                              
    -library          [option] Indicates that the unit being       
                      deployed is a library. This option is        
                      required when the application is a library.  
    -advanced         Print advanced usage options.                
命令各参数含义如下:
adminurl: 集群管理服务器地址和端口号,并且使用t3协议。
user: 登录weblogic控制台时输入的管理员用户名。
password: 登录weblogic控制台时输入的管理员口令。
name: 部署的应用程序名。
source: 部署的应用程序放置的目录。
targets: weblogic集群的名字。
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值