• 脚本


    if ( ! $?LD_LIBRARY_PATH ) then setenv LD_LIBRARY_PATH /lib:/usr/lib:/usr/local/libendifif ( ! $?LIBPATH ) then setenv LIBPATH /lib:/usr/lib:/usr/local/libendifsetenv PROJECT_HOME ${HOME}/tomcatsetenv JAVA_HOME ${PROJECT_HOME}/jdk1.5.0_16setenv LANG zh_CNif ( -`uname -s` == '-HP-UX' ) then setenv JAVA_HOME /opt/java1.5 setenv LANG zh_CN.hp15CNendifif ( -`uname -s` == '-AIX' ) then setenv JAVA_HOME /usr/java5_64 setenv LANG zh_CN.GB18030 setenv AIXTHREAD_SCOPE S setenv AIXTHREAD_MUTEX_DEBUG OFF setenv AIXTHREAD_COND_DEBUG OFF setenv AIXTHREAD_RWLOCK_DEBUG OFF endifsetenv JAVA_BINDIR ${JAVA_HOME}/jre/binsetenv JAVA_ROOT ${JAVA_HOME}setenv JRE_HOME ${JAVA_HOME}/jresetenv PATH ${JAVA_HOME}/bin:${PATH}setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}setenv LIBPATH ${LIBPATH}setenv CLASSPATH ./${PROJECT_HOME}/bin:${JAVA_HOME}/jre/lib:${JAVA_HOME}/libalias all "stopproject;startproject;showlog " alias jsp "cd ${PROJECT_HOME}/webapps/project/WEB-INF/jsp " alias js "cd ${PROJECT_HOME}/webapps/project/WEB-INF/jsp/js " alias startproject "cd ${PROJECT_HOME}/bin; ./startup.sh ; rm -rf ${PROJECT_HOME}/work/* " alias qstartproject "cd ${PROJECT_HOME}/bin; ./startup.sh quick; rm -rf ${PROJECT_HOME}/work/* " alias stopproject "cd ${PROJECT_HOME}/bin; ./clearall.sh " alias dstopproject "cd ${PROJECT_HOME}/bin; ./clearall.sh dump " alias jdbc "cd ${PROJECT_HOME}/webapps/project/WEB-INF/classes " alias showproject "ps -ef| grep ${LOGNAME}| grep '/java '| grep -v grep " alias project "cd ${PROJECT_HOME}/webapps/project" alias lib "cd ${PROJECT_HOME}/webapps/project/WEB-INF/lib " alias bin "cd ${PROJECT_HOME}/bin " alias conf "cd ${PROJECT_HOME}/webapps/project/WEB-INF/conf " alias search "cd ${PROJECT_HOME}/webapps/project/WEB-INF/classes/search " alias tomconf "cd ${PROJECT_HOME}/conf " alias log "cd ${PROJECT_HOME}/bin/local " alias tomlog "cd ${PROJECT_HOME}/logs " alias showlog "tail -f ${PROJECT_HOME}/logs/tomcatconsole.log " alias startw "cd ${PROJECT_HOME}/bin; sh startwtomcat.sh " alias stopw "cd ${PROJECT_HOME}/bin; ./wtomcat.csh stop & " alias showw "cd ${PROJECT_HOME}/bin; ps -ef| grep project| grep wtomcat.csh| grep -v grep " alias rlog "rm -f ${PROJECT_HOME}/bin/local/* ; rm -rf ${PROJECT_HOME}/work/* " alias mlog "rm -rf ${PROJECT_HOME}/bin/local/* ; rm -rf ${PROJECT_HOME}/work/* ; rm -rf ${PROJECT_HOME}/bin/logs/* ; rm -f ${PROJECT_HOME}/logs/*.log " alias showtype "cat ${PROJECT_HOME}/webapps/project/WEB-INF/classes/serverInfo.properties | grep -i 'servertype=' " alias crp "cd ${PROJECT_HOME}/bin; sh crp.sh " alias ll "ls -l " alias bakproject "cd ${PROJECT_HOME}/webapps; tar -zcvpf project01xw_80_`date +%F`_bak.tgz project; cd -"if ( -`uname -r| grep '2.6.5'|wc -l ` == '-1' ) then setenv LIBPATH ${PROJECT_HOME}/projectlib/suse/suse9:${LIBPATH} setenv LD_LIBRARY_PATH ${PROJECT_HOME}/projectlib/suse/suse9/jdk32bit:${PROJECT_HOME}/projectlib/suse:${LD_LIBRARY_PATH}endifif ( -`uname -r| grep '2.6.16'|wc -l ` == '-1' ) then setenv LIBPATH ${PROJECT_HOME}/projectlib/suse/suse10:${LIBPATH} setenv LD_LIBRARY_PATH ${PROJECT_HOME}/projectlib/suse/suse10:${PROJECT_HOME}/projectlib/suse:${LD_LIBRARY_PATH}endif if ( -`uname -a| awk '{print $3}'` == '-11.11' ) then setenv LIBPATH ${PROJECT_HOME}/projectlib/hp/hp11.11:${LIBPATH} setenv LD_LIBRARY_PATH ${PROJECT_HOME}/projectlib/hp/hp11.11:${PROJECT_HOME}/projectlib/hp:${LD_LIBRARY_PATH}endif if ( -`uname -a| awk '{print $3}'` == '-11.23' ) then setenv LIBPATH ${PROJECT_HOME}/projectlib/hp/hp11.23:${LIBPATH} setenv LD_LIBRARY_PATH ${PROJECT_HOME}/projectlib/hp/hp11.23:${LD_LIBRARY_PATH}endifif ( -`uname -s` == '-AIX' ) then setenv LIBPATH ${PROJECT_HOME}/projectlib/aix/aix5.3/jdk64bit:${LIBPATH} setenv LD_LIBRARY_PATH ${PROJECT_HOME}/projectlib/aix/aix5.3/jdk64bit:${PROJECT_HOME}/projectlib/aix/aix5.3:${LD_LIBRARY_PATH}endif
  • 相关阅读:
    【小模块】公告滚动并暂停
    w3school的PHP教程提炼(一)PHP基础
    Nicholas C. Zakas:介紹CSS Lint(检测工具)
    【小模块】回到顶部的页面跟随按钮(仿淘宝)
    【小模块】内容循环滚动(仿新浪微博未登录首页滚动微博显示)
    前端管窥:图片Sprite管理
    《锋利的jQuery》要点归纳(六)插件的使用和写法
    CSS reset 一份很全的样式表
    《锋利的jQuery》要点归纳(五)jQuery与ajax的应用(上)
    《锋利的jQuery》要点归纳(五)jQuery与ajax的应用(下)
  • 原文地址:https://www.cnblogs.com/lishoubin/p/3211289.html
Copyright © 2020-2023  润新知