티스토리 뷰

vi /apache-tomcat-7.0.57/bin/catalina.sh



아래 문장 검색하여 주석처리

touch "$CATALINA_OUT"



>> "$CATALINA_OUT" 2>&1 "&" 라인 지운 뒤 아래 문장 추가

"2>&1" \| /usr/sbin/rotatelogs "$CATALINA_OUT".%Y-%m-%d.log 86400 540 "&"








Before

touch "$CATALINA_OUT" 

  if [ "$1" = "-security" ] ; then 

    if [ $have_tty -eq 1 ]; then 

      echo "Using Security Manager" 

    fi 

    shift 

    eval "\"$_RUNJAVA\"" "\"$LOGGING_CONFIG\"" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \ 

      -Djava.endorsed.dirs="\"$JAVA_ENDORSED_DIRS\"" -classpath "\"$CLASSPATH\"" \ 

      -Djava.security.manager \ 

      -Djava.security.policy=="\"$CATALINA_BASE/conf/catalina.policy\"" \ 

      -Dcatalina.base="\"$CATALINA_BASE\"" \ 

      -Dcatalina.home="\"$CATALINA_HOME\"" \ 

      -Djava.io.tmpdir="\"$CATALINA_TMPDIR\"" \ 

      org.apache.catalina.startup.Bootstrap "$@" start \ 

      >> "$CATALINA_OUT" 2>&1 "&" 

 

  else 

    eval "\"$_RUNJAVA\"" "\"$LOGGING_CONFIG\"" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \ 

      -Djava.endorsed.dirs="\"$JAVA_ENDORSED_DIRS\"" -classpath "\"$CLASSPATH\"" \ 

      -Dcatalina.base="\"$CATALINA_BASE\"" \ 

      -Dcatalina.home="\"$CATALINA_HOME\"" \ 

      -Djava.io.tmpdir="\"$CATALINA_TMPDIR\"" \ 

      org.apache.catalina.startup.Bootstrap "$@" start \ 

      >> "$CATALINA_OUT" 2>&1 "&" 





After

# touch "$CATALINA_OUT" 

  if [ "$1" = "-security" ] ; then 

    if [ $have_tty -eq 1 ]; then 

      echo "Using Security Manager" 

    fi 

    shift 

    eval "\"$_RUNJAVA\"" "\"$LOGGING_CONFIG\"" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \ 

      -Djava.endorsed.dirs="\"$JAVA_ENDORSED_DIRS\"" -classpath "\"$CLASSPATH\"" \ 

      -Djava.security.manager \ 

      -Djava.security.policy=="\"$CATALINA_BASE/conf/catalina.policy\"" \ 

      -Dcatalina.base="\"$CATALINA_BASE\"" \ 

      -Dcatalina.home="\"$CATALINA_HOME\"" \ 

      -Djava.io.tmpdir="\"$CATALINA_TMPDIR\"" \ 

      org.apache.catalina.startup.Bootstrap "$@" start \ 

      "2>&1" \| /usr/sbin/rotatelogs "$CATALINA_OUT".%Y-%m-%d.log 86400 540 "&"

 

  else 

    eval "\"$_RUNJAVA\"" "\"$LOGGING_CONFIG\"" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \ 

      -Djava.endorsed.dirs="\"$JAVA_ENDORSED_DIRS\"" -classpath "\"$CLASSPATH\"" \ 

      -Dcatalina.base="\"$CATALINA_BASE\"" \ 

      -Dcatalina.home="\"$CATALINA_HOME\"" \ 

      -Djava.io.tmpdir="\"$CATALINA_TMPDIR\"" \ 

      org.apache.catalina.startup.Bootstrap "$@" start \ 

      "2>&1" \| /usr/sbin/rotatelogs "$CATALINA_OUT".%Y-%m-%d.log 86400 540 "&"


댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/12   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
글 보관함