提供脚本redeploy.sh
脚本内容
#!/bin/bash
#根据具体情况设置路径
export WLS_HOME=/cib/weblogic/Oracle/Middleware12C/wlserver
exprot JAVA_HOME=/cib/weblogic/Oracle/jdk1.8.0_144
exprot CLASSPATCH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$WLS_HOME/server/lib/weblogic.jar
export PATH=$JAVAZ_HOME/bin:$JAVA_HOME/jre/bin:$PATH
echo -n "please enter weblogic console username"
read username
echo -n "please enter weblogic console password"
read -s password
#ip及端口 根据实际情况修改
java weblogic.Deployer -adminurl t3://10.7.54.88:7001 -username $username -password $password -redeploy -name epes
参考:https://docs.oracle.com/middleware/12213/wls/DEPGD/redeploy.htm#DEPGD286