Press "Enter" to skip to content

修改tomcat的catalina.out日志路径

1、vi tomcat/bin/CATALINA.sh
将CATALINA_OUT="$CATALINA_BASE"/logs/catalina.out修改为CATALINA_OUT=/home/test/catalina.out

2、vi tomcat/conf/logging.properties
初始状态下的路径是${catalina.base}/logs。

1catalina.org.apache.juli.FileHandler.level = FINE
1catalina.org.apache.juli.FileHandler.directory = /home/test
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = FINE
2localhost.org.apache.juli.FileHandler.directory = /home/test
2localhost.org.apache.juli.FileHandler.prefix = localhost.

3manager.org.apache.juli.FileHandler.level = FINE
3manager.org.apache.juli.FileHandler.directory = /home/test
3manager.org.apache.juli.FileHandler.prefix = manager.

4host-manager.org.apache.juli.FileHandler.level = FINE
4host-manager.org.apache.juli.FileHandler.directory = /home/test
4host-manager.org.apache.juli.FileHandler.prefix = host-manager.

最后别忘了重启tomcat。

Be First to Comment

发表评论

电子邮件地址不会被公开。 必填项已用*标注