[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
查看部署任务:
[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:
停止应用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测试进程服务有没有挂起,假死现象
[root@muze1 demostage1]$ java -cp /app/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.Admin -url t3://192.168.10.129:7002 -username weblogic -password weblogic123 PING 20 100
Sending 20 pings of 100 bytes.
RTT = ~29 milliseconds, or ~1 milliseconds/packet
weblogic测试数据源情况:
[root@muze1 demostage1]$ java -cp /app/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.Admin -adminurl t3://192.168.10.129:7001 -username weblogic -password weblogic123 TEST_POOL
Pool does not exist.
[root@muze1 demostage1]$ java -cp /app/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.Admin -adminurl t3://192.168.10.129:7002 -username weblogic -password weblogic123 TEST_POOL
The server running at the provided adminUrl t3://192.168.10.129:7002 is not an Administration Server.