In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how tomcat modifies the log path in linux. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
1. Modify catalina.sh
Go to the tomcat installation directory / bin, find catalina.sh, download it locally, and back it up.
Modify the local catalina.sh to change the red box below to CATALINA_OUT=/u01/app/dt/dt_logs
Here is an example of changing the log directory to / u01/app/dt/dt_logs, which is all taken as an example below.
The modification is as follows
Upload the modified catalina.sh file to the tomcat installation directory / bin, overwriting the original file.
two。 Modify logging.properties
Go to the tomcat installation directory / conf/, to find logging.properties, download it locally and back up at the same time.
Modify the local logging.properties and change the red box below to / u01/app/dt/dt_logs
The modification is as follows
Upload the modified logging.properties file to the tomcat installation directory / conf/, to overwrite the original file.
3. Modify server.xml
Go to the tomcat installation directory / conf/, to find server.xml, download it locally and back up at the same time.
Modify the local server.xml and change the red box below to directory= "/ u01/app/dt/dt_logs"
The modification is as follows
Upload the modified server.xml file to the tomcat installation directory / conf/, to overwrite the original file.
4. Modify log4j.properties
If the log is configured in the web application, please modify it synchronously, for example, it is usually configured in log4j.properties.
This is the end of this article on "how tomcat modifies the log path in linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.