In Linux, tomcat logs are recorded by date in the tomcat 5 diary under cronologWIN. in linux, only one catalina is created under tomcat/logs. out parts. A long time. create a log file surge. it is really inconvenient to deal with management. if it can be like win's t... in Linux, tomcat logs are recorded by date in the tomcat 5 diary under cronolog WIN. in linux, only one catalina is created under tomcat/logs. out parts. A long time. create a log file surge. it is really inconvenient to deal with management. it would be nice to be able to record the date like tomcat in win. if you think about it, you can use cron to extract the diary file. try it. google .cronolog-1.6.2.tar.gz 1.download cronolog-1.6.2.tar.gz 2. install # tar zxvf cronolog-1.6.2.tar. Gz #./configure # make install! By default, it is installed under/usr/local/sbin/. 3. the setting is important. Check out !!! In tomcat/bin/catalian. find org. apache. catalina. startup. bootstrap "$ @" start \> "$ CATALINA_BASE"/logs/catalina. out 2 & 1 & change the above content to org. apache. catalina. startup. bootstrap "$ @" start \ |/usr/local/sbin/cronolog "$ CATALINA_BASE"/logs/catalina. % Y-% m-% d. out>/dev/null 2> & 1 & corrected. restart #. /catalina. sh start: check the Labor result. # ls/tomcat/logs/will create several more files under logs, like catalina.2006.06.01.log.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.