The idea is to create a new directory at /u01 (in this example newlogs) and link it to the tomcat logs
Note: do all the commands as root
service tomcat stop
mkdir /u01/newlogs
mv /usr/share/tomcat/default/logs/* /u01/newlogs
rm -rf /usr/share/tomcat/default/logs
ln -sf /u01/newlogs /usr/share/tomcat/default/logs
chmod 755 /usr/share/tomcat/default/logs
chown -R tomcat:tomcat /usr/share/tomcat/default/logs
service tomcat start
Comments
0 comments
Please sign in to leave a comment.