2、进入解压目录,输入命令./configure --prefix=/home/cronolog162
3、编译安装,输入命令,
make
make install
4、编辑Tomcat的bin/catalina.sh
(1)注释# touch "$CATALINA_OUT"
(2)替换信息
>> "$CATALINA_OUT" 2>&1 &
为
2>&1 |/home/cronolog162/sbin/cronolog "$CATALINA_BASE/logs/catalina.%Y-%m-%d.out" &
5、完成