通过杀进程的方式来关闭WebLogic而不是执行
sh stopWebLogic.sh weblogic weblogic myserver t3://127.0.0.1:7002
1.修改startWebLogic.sh
在最后几行
${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Dweblogic.ProductionModeEnabled=${PRODUCTION_MODE} -Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" weblogic.Server
的后面加上 port=7006.手工重启weblogic
2.stop.sh
i=0
for x in `ps -ef | grep java | grep port=7006|awk '{print $2}'`
do
kill -9 "$x"
let "i++"
done
if [ $i -eq 0 ]; then
echo "No Running WebLogic Instance Found!"
else
echo "Weblogic already shutdown successfully!"
fi
3.start.sh
nohup sh startWebLogic.sh nohup.out &
4.restart.sh
cd /home/bea/user_projects/domains/mydomain
i=0
for x in `ps -ef | grep java | grep port=7006|awk '{print $2}'`
do
kill -9 "$x"
let "i++"
done
if [ $i -eq 0 ]; then
echo "No Running WebLogic Instance Found!"
else
echo "Weblogic already shutdown successfully!"
fi
nohup sh startWebLogic.sh nohup.out &