目的:所有的日志输出到共享存储目录中 方法:将 tomcat 的日志放置到 /data/logs/主机名/ 下, 1. 修改tomcat/conf下的logging.properties [root@harbor conf]# cat logging.properties # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the N…
tomcat中禁用catalina.out的输出,又可能很大. 1.直接修改catalina.sh文件的输出语句. 在文件中找到以下内容. if [ -z "$CATALINA_OUT" ] ; then CATALINA_OUT="$CATALINA_BASE"/logs/catalina.out 输入到/dev/null黑洞,上面内容修改成下面内容. if [ -z "$CATALINA_OUT" ] ; then CATALINA_OUT=…