Steps to start and stop a WebLogic domain and managed server
Start a WebLogic domain and managed server :
export MW_HOME=/u01/app/oracle/middleware
export DOMAIN_HOME=$MW_HOME/user_projects/domains/clusterDomain
echo "Starting AdminServer"
nohup $DOMAIN_HOME/startWebLogic.sh > /dev/null 2>&1 &
sleep 120
echo "Starting clusterServer_1"
nohup $DOMAIN_HOME/bin/startManagedWebLogic.sh clusterServer_1 > /dev/null 2>&1 &
sleep 60
echo "Done!"
Stop a WebLogic domain and managed server :
export MW_HOME=/u01/app/oracle/middleware
export DOMAIN_HOME=$MW_HOME/user_projects/domains/clusterDomain
echo "Stopping clusterServer_1"
$DOMAIN_HOME/bin/stopManagedWebLogic.sh clusterServer_1
echo "Stopping AdminServer"
$DOMAIN_HOME/bin/stopWebLogic.sh
echo "Tidy up temp files"
find $DOMAIN_HOME/servers -name "*.lok" -exec rm -f {} \;
find $DOMAIN_HOME/servers -name "*.DAT" -exec rm -f {} \;
echo "Done!"