命令行进行weblogic维护

命令行进行weblogic维护

[root@muze1 ~]$ java -cp /app/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.Deployer -name testwar -user weblogic -password weblogic123 -deploy /app/weblogic/myDeployments/demostage1/TestWas.war
weblogic.Deployer invoked with options: -name testwar -user weblogic -deploy /app/weblogic/myDeployments/demostage1/TestWas.war
<Jul 13, 2021 10:21:39 AM CST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, testwar [archive: /app/weblogic/myDeployments/demostage1/TestWas.war], to configured targets.>
Task 7 initiated: [Deployer:149026]deploy application testwar on AdminServer.
Task 7 completed: [Deployer:149026]deploy application testwar on AdminServer.
Target state: deploy completed on Server AdminServer

命令行进行weblogic维护

查看部署任务:

[root@muze1 ~]$ java -cp /app/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.Deployer -adminurl t3://192.168.10.129:7001 -user weblogic -password weblogic123   -listtask
weblogic.Deployer invoked with options: -adminurl t3://192.168.10.129:7001 -user weblogic -listtask
Task 0 failed: [Deployer:149026]deploy application TestWas.war on AdminServer.
Task 1 completed: [Deployer:149026]remove application TestWas.war on AdminServer.
Task 2 completed: [Deployer:149026]stop application TestWas on AdminServer.
Task 3 completed: [Deployer:149026]remove application TestWas on AdminServer.
Task 4 completed: [Deployer:149026]deploy application TestWas.war on AdminServer.
Task 5 completed: [Deployer:149026]stop application TestWas.war on AdminServer.
Task 6 completed: [Deployer:149026]remove application TestWas.war on AdminServer.
Target state: listtask completed on Server AdminServer

Task 7 completed: [Deployer:149026]deploy application testwar on AdminServer.
Target state: listtask completed on Server AdminServer

取消Admin上的程序包部署:

[root@muze1 ~]$ java -cp /app/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.Deployer -adminurl t3://192.168.10.129:7001 -user weblogic -password weblogic123 -name testwar -undeploy /app/weblogic/myDeployments/demostage1/TestWas.war -targets AdminServer
weblogic.Deployer invoked with options: -adminurl t3://192.168.10.129:7001 -user weblogic -name testwar -undeploy /app/weblogic/myDeployments/demostage1/TestWas.war -targets AdminServer
<Jul 13, 2021 10:30:27 AM CST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating undeploy operation for application, testwar [archive: null], to AdminServer .>
Task 8 initiated: [Deployer:149026]remove application testwar on AdminServer.
Task 8 completed: [Deployer:149026]remove application testwar on AdminServer.
Target state: undeploy completed on Server AdminServer

将程序包部署目标部署到Server1:

命令行进行weblogic维护

   停止应用war包程序部署:

   使用选项: -stop   -adminmode

[root@muze1 demostage1]$ java -cp /app/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.Deployer -adminurl t3://192.168.10.129:7001 -name testwar -user weblogic -password weblogic123 -stop -adminmode
weblogic.Deployer invoked with options: -adminurl t3://192.168.10.129:7001 -name testwar -user weblogic -stop -adminmode
<Jul 13, 2021 10:49:57 AM CST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating stop operation for application, testwar [archive: null], to configured targets.>
Task 12 initiated: [Deployer:149026]stop application testwar on Server1.
Task 12 completed: [Deployer:149026]stop application testwar on Server1.
Target state: stop completed on Server Server1

命令行进行weblogic维护

上一篇:小白搭建IIS网站之ASP问题


下一篇:ZT:使用lsof恢复误删除的文件