stopMS01.sh

[root@eslhap01 appsdomain]# vi stopMS01.sh
#!/bin/sh

# WARNING: This file is created by the Configuration Wizard.
# Any changes to this script may be lost when adding extensions to this configuration.

# *************************************************************************
# This script is used to stop WebLogic Server created by Config Wizard
# Usage: stopWebLogic [username] [password] [server-name] [admin-url]
# The default value of server-name is WLS_TEST_3141_ADMIN
# The default value of admin-url is t3://localhost:5001
# For additional information, refer to the WebLogic Server Administration
# Console Online Help(http://e-docs.bea.com/wls/docs81/ConsoleHelp/startstop.html)
# *************************************************************************

if [ "$1" != "" ] ; then
        UIDPWD="-username $1"
        shift
fi

if [ "$1" != "" ] ; then
        UIDPWD="${UIDPWD} -password $1"
        shift
fi

if [ "" = "true" ] ; then
        if [ "${UIDPWD}" = "" ] ; then
                echo "ERROR: Because your domain was created as a production mode domain. "
                echo "You MUST include a username parameter that can be used to shutdown Weblogic Server"
                read _val
                exit
        fi
fi

# set server name

SERVER_NAME="WLS_PRO_ESLHAP01_MS01"

if [ "$1" != "" ] ; then
        SERVER_NAME="$1"
        shift
fi

if [ "${SERVER_NAME}" = "" ] ; then
        echo "ERROR: Missing Server Name. "
        echo "Usage: stopWebLogic.cmd(sh) [username] [password] [server-name] [admin-url]"
        read _val
        exit
fi

# set ADMIN_URL

if [ "$1" != "" ] ; then
        ADMIN_URL="$1"
        shift
else
        if [ "${ADMIN_URL}" = "" ] ; then
                ADMIN_URL="t3://localhost:5001"
        fi
fi

# Call commEnv here.

. /home/weblogic/bea/beaHome814/weblogic81/common/bin/commEnv.sh

echo "Stopping Weblogic Server..."

${JAVA_HOME}/bin/java -cp ${WEBLOGIC_CLASSPATH} weblogic.Admin FORCESHUTDOWN -url ${ADMIN_URL} ${UIDPWD} ${SERVER_NAME}  2>&1

echo "Done"

"stopMS01.sh" 70L, 1808C   

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值