在bin/catalina.sh
文件里,原代码:
org.apache.catalina.startup.Bootstrap "$@" start
"$CATALINA_BASE"/logs/catalina.out 2>&1 &
修改为:
org.apache.catalina.startup.Bootstrap "$@" start
2>&1 |/usr/sbin/cronolog "$CATALINA_BASE"/logs/catalina.out.%Y-%m-%d &