安装cronlog
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install cronolog -y
修改catalina.sh文件
CATALINA_OUT="CATALINA_BASE"/logs/catalina.out
修改成:CATALINA_OUT="CATALINA_BASE"/logs
修改成
org.apache.catalina.startup.Bootstrap "$@" start 2>&1 | /usr/sbin/cronolog "$CATALINA_OUT"/catalina.%Y-%m-%d.out >> /dev/null &
原文:https://www.cnblogs.com/lovelinux199075/p/8781632.html