其他分享
首页 > 其他分享> > tomcat 日期切分

tomcat 日期切分

作者:互联网

https://www.cnblogs.com/t-road/p/6837221.html

if [ "$1" = "-security" ] ; then
    ......
    org.apache.catalina.startup.Bootstrap "$@" start 2>&1 \
      | /usr/local/cronolog/sbin/cronolog "$CATALINA_BASE"/logs/catalina.%Y-%m-%d.out >> /dev/null &
else
    ......
    org.apache.catalina.startup.Bootstrap "$@" start 2>&1 \
      | /usr/local/cronolog/sbin/cronolog "$CATALINA_BASE"/logs/catalina.%Y-%m-%d.out >> /dev/null 

这个里面的
usr/local/cronolog要是自己配置的地址
./configure --prefix=/usr/local/cronolog //按自己需要指定安装路径,或不指定

 

 

标签:catalina,logs,tomcat,startup,切分,日期,usr,local,cronolog
来源: https://www.cnblogs.com/sz-jack/p/11100135.html