如何修改tomcat日志的存放路径?
步骤1:修改tomcat/conf下的logging.properties,将 ${catalina.base}替换为新的目录,以/opt为例:
sed -i 's#${catalina.base}#/opt#g' logging.properties
步骤2:修改tomcat/bin下的catalina.sh文件,也将${catalina.base}替换为新的目录
sed -i 's#${catalina.base}#/opt#g' catalina.sh
转载于:https://blog.51cto.com/13178102/1952535