...
|
...
|
@@ -8,25 +8,25 @@ BASE_BIN_DIR=`dirname $0` |
|
|
. $BASE_BIN_DIR/functions.sh
|
|
|
|
|
|
export JAVA_HOME=${yoho.env.javahome}
|
|
|
export WEB_APP_HOME=${yohobuy.product.env.webapphome}
|
|
|
export SERVER_PORT=${yohobuy.product.env.serverport}
|
|
|
export WEB_APP_HOME=${yohobuy.rfid.env.webapphome}
|
|
|
export SERVER_PORT=${yohobuy.rfid.env.serverport}
|
|
|
export PRODUCTION_MODE="${yoho.env.productmode}"
|
|
|
export SERVER_HOME=${yoho.env.serverhome}
|
|
|
export SERVER_TYPE=${yoho.env.servertype}
|
|
|
export SERVER_NAMESPACE=${yohobuy.product.env.namespace}
|
|
|
export SERVER_NAMESPACE=${yohobuy.rfid.env.namespace}
|
|
|
export GW_URL=$Gateway_URL
|
|
|
|
|
|
#if("${yoho.env.servertype}"=="jboss")
|
|
|
export SERVER_BASE_DIR=" -Djboss.server.base.dir=${yohobuy.product.env.webapphome}/.jboss/default "
|
|
|
export SERVER_BASE_DIR=" -Djboss.server.base.dir=${yohobuy.rfid.env.webapphome}/.jboss/default "
|
|
|
#end
|
|
|
|
|
|
#if("${yoho.env.servertype}"=="tomcat")
|
|
|
export SERVER_BASE_DIR=" -Dcatalina.base=${yohobuy.product.env.webapphome}/.tomcat "
|
|
|
export SERVER_BASE_DIR=" -Dcatalina.base=${yohobuy.rfid.env.webapphome}/.tomcat "
|
|
|
#end
|
|
|
|
|
|
export NAMING_PORT=`expr 9000 + $SERVER_PORT`
|
|
|
export HTTP_SERVER_PORT=`expr 8080 + $SERVER_PORT`
|
|
|
export DEBUG_PORT=`expr 8800 + $SERVER_PORT`
|
|
|
export NAMING_PORT=`expr 9010 + $SERVER_PORT`
|
|
|
export HTTP_SERVER_PORT=`expr 8090 + $SERVER_PORT`
|
|
|
export DEBUG_PORT=`expr 8810 + $SERVER_PORT`
|
|
|
|
|
|
export CHECK_SERVER_STARTUP_URL="http://127.0.0.1:$HTTP_SERVER_PORT/$SERVER_NAMESPACE/common/ok.jsp"
|
|
|
export STARTUP_SUCCESS_MSG="Server Online Resources ok"
|
...
|
...
|
@@ -35,13 +35,13 @@ export JAVA_DEBUG_OPT=" -server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp |
|
|
export TIGER_JMX_OPT=" -Dcom.sun.management.config.file=$WEB_APP_HOME/conf/jmx/jmx_monitor_management.properties "
|
|
|
|
|
|
#jmx
|
|
|
export JMX_PORT=`expr 9600 + $SERVER_PORT`
|
|
|
export JMX_PORT=`expr 9610 + $SERVER_PORT`
|
|
|
export LOCAL_IP=`/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"|awk 'NR==1 {print}'`
|
|
|
export CATALINA_OPTS="$CATALINA_OPTS -Djava.rmi.server.hostname=$LOCAL_IP -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
|
|
|
|
|
|
|
|
|
GC_LOGS_DIR=/Data/logs/gc/product
|
|
|
HEAPDUMP_LOGS_DIR=/Data/logs/heapDump/product
|
|
|
GC_LOGS_DIR=/Data/logs/gc/rfid
|
|
|
HEAPDUMP_LOGS_DIR=/Data/logs/heapDump/rfid
|
|
|
|
|
|
if [ ! -d $GC_LOGS_DIR ]; then
|
|
|
mkdir -p $GC_LOGS_DIR
|
...
|
...
|
|