Chinaunix首页 | 论坛 | 博客
  • 博客访问: 156025
  • 博文数量: 39
  • 博客积分: 2075
  • 博客等级: 大尉
  • 技术积分: 420
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-26 15:55
文章分类

全部博文(39)

文章存档

2014年(5)

2013年(1)

2012年(1)

2011年(12)

2010年(24)

我的朋友

分类:

2011-07-05 17:19:19

startWeblogic 脚本
# *************************************************************************
# This script is used to start WebLogic Server for the domain in the
# current working directory.  This script simply sets the SERVER_NAME
# variable and starts server.
#
# To create your own start script for your domain, all you need to set is
# SERVER_NAME, then starts the server.
#
# Other variables that startWLS takes are:
#
# WLS_USER     - cleartext user for server startup
# WLS_PW       - cleartext password for server startup
# PRODUCTION_MODE    - true for production mode servers, false for
#                development mode
# JAVA_OPTIONS - Java command-line options for running the server. (These
#                will be tagged on to the end of the JAVA_VM and MEM_ARGS)
# JAVA_VM      - The java arg specifying the VM to run.  (i.e. -server,
#                -hotspot, etc.)
# MEM_ARGS     - The variable to override the standard memory arguments
#                passed to java
#
# For additional information, refer to the WebLogic Server Administration
# Console Online Help()
# *************************************************************************

# Initialize the common environment.

WL_HOME="/opt/wls8/weblogic81"

PRODUCTION_MODE="true"

JAVA_VENDOR="Sun"

JAVA_HOME="/opt/wls8/jdk142_04"
CM_LIB_HOME="/home/wls8/lib/cm"
SUNYARD_LIB_HOME="/home/wls8/lib/sunyard"
SUNCFS_LIB_HOME="/home/wls8/lib/suncfs"
XML_LIB_HOME="/home/wls8/lib/xml"
DB2_LIB_HOME="/home/wls8/lib/db2"
STRUTS_LIB_HOME="/home/wls8/lib/struts"
OTHER_LIB_HOME="/home/wls8/lib/other"

AJAX_LIB_HOME="/home/wls8/lib/ajax"

 

CLASSPATHSEP=:

#CM JAR
CLASSPATH="${CM_LIB_HOME}/cmb81.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${CM_LIB_HOME}/cmbcm81.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${CM_LIB_HOME}/cmbdb281.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${CM_LIB_HOME}/cmbdb2c81.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${CM_LIB_HOME}/cmbicm81.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${CM_LIB_HOME}/cmbicmc81.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${CM_LIB_HOME}/cmbsdk81.jar${CLASSPATHSEP}${CLASSPATH}"

#SUNYARD JAR
CLASSPATH="${SUNYARD_LIB_HOME}/CPICIMGJSP.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${SUNYARD_LIB_HOME}/eCpicImg.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${SUNYARD_LIB_HOME}/SunCMServices.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${SUNYARD_LIB_HOME}/SystemTools.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${SUNYARD_LIB_HOME}/MATree.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${SUNYARD_LIB_HOME}/SunNewQuery.jar${CLASSPATHSEP}${CLASSPATH}"

#SUNCFS JAR
CLASSPATH="${SUNCFS_LIB_HOME}/SunCFSTrans.jar${CLASSPATHSEP}${CLASSPATH}"

#XML JAR
CLASSPATH="${XML_LIB_HOME}/jaxen-core.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${XML_LIB_HOME}/jaxen-jdom.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${XML_LIB_HOME}/jdom.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${XML_LIB_HOME}/saxpath.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${XML_LIB_HOME}/xalan.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${XML_LIB_HOME}/xerces.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${XML_LIB_HOME}/xml-apis.jar${CLASSPATHSEP}${CLASSPATH}"

#DB2 JAR
CLASSPATH="${DB2_LIB_HOME}/db2java.zip${CLASSPATHSEP}${CLASSPATH}"

#STRUTS JAR
CLASSPATH="${STRUTS_LIB_HOME}/commons-beanutils.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${STRUTS_LIB_HOME}/commons-collections.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${STRUTS_LIB_HOME}/commons-digester.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${STRUTS_LIB_HOME}/commons-fileupload.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${STRUTS_LIB_HOME}/commons-lang.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${STRUTS_LIB_HOME}/commons-logging.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${STRUTS_LIB_HOME}/commons-validator.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${STRUTS_LIB_HOME}/jakarta-oro.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${STRUTS_LIB_HOME}/struts.jar${CLASSPATHSEP}${CLASSPATH}"

#OTHER JAR
CLASSPATH="${OTHER_LIB_HOME}/servlet.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${OTHER_LIB_HOME}/urlrewrite-2[1].6.0.jar${CLASSPATHSEP}${CLASSPATH}"

#AJAX JAR
CLASSPATH="${AJAX_LIB_HOME}/commons-beanutils.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${AJAX_LIB_HOME}/commons-collections-3.2.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${AJAX_LIB_HOME}/commons-lang-2.3.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${AJAX_LIB_HOME}/commons-logging-1.1.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${AJAX_LIB_HOME}/ezmorph-1.0.4.jar${CLASSPATHSEP}${CLASSPATH}"
CLASSPATH="${AJAX_LIB_HOME}/json-lib-2.1-jdk13.jar${CLASSPATHSEP}${CLASSPATH}"


# Call commEnv here AFTER setting the java_vendor to get common environmental settings.

. ${WL_HOME}/common/bin/commEnv.sh

# Set SERVER_NAME to the name of the server you wish to start up.

SERVER_NAME="myserver"

CLASSPATH="${WEBLOGIC_CLASSPATH}:${POINTBASE_CLASSPATH}:${JAVA_HOME}/jre/lib/rt.jar:${WL_HOME}/server/lib/webservices.jar:${CLASSPATH}"
CLASSPATH="${WL_HOME}/server/lib/CR284362_810sp6.jar:${CLASSPATH}"
export CLASSPATH

export export MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxNewSize=480m -XX:MaxPermSize=128m"

# Call WebLogic Server

echo "."
echo "CLASSPATH=${CLASSPATH}"
echo "."
echo "PATH=${PATH}"
echo "."
echo "***************************************************"
echo "*  To start WebLogic Server, use a username and   *"
echo "*  password assigned to an admin-level user.  For *"
echo "*  server administration, use the WebLogic Server *"
echo "*  console at     *"
echo "***************************************************"

${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Djava.compiler=NONE -Dweblogic.ProductionModeEnabled=${PRODUCTION_MODE} -Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" weblogic.Server

 

可执行脚本

DATE=`date "+%m%d%H%M"`
nohup "./startWebLogic.sh" 1>/home/wls8/wls8log_navi/nohupadmin${DATE}.log 2>&1 &

 
服务脚本
export JAVA_HOME=/usr/java/jdk1.5.0_13
HOMEBIN=/home/dzyx/EXIF_SERVERS/server/bin
CLASSPATH=$HOMEBIN
nohup $JAVA_HOME/bin/java -cp $CLASSPATH -jar server.jar
 
DATE=`date "+%m%d%H%M"`
nohup "./startServer.sh" 1>/home/dzyx/EXIF_SERVERS/logs/server/nohuptrans${DATE}.log 2>&1 &
阅读(4032) | 评论(0) | 转发(0) |
0

上一篇:hibernate 缓存机制

下一篇:分层数据

给主人留下些什么吧!~~