tomcat日志切割

可参考http://cmjcmj8080.iteye.com/blog/847619
修改catalina.sh,有两处,385、394行
      org.apache.catalina.startup.Bootstrap "$@" start \
      >> "$CATALINA_OUT" 2>&1 "&"


改为
      org.apache.catalina.startup.Bootstrap "$@" start 2>&1 \
      |/usr/bin/cronolog "$CATALINA_OUT".%Y-%m-%d.out>> /dev/null &

你可能感兴趣的:(tomcat)