In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to modify the default input log path of tomcat in the linux system, which has a certain reference value, and interested friends can refer to it. I hope you can learn a lot after reading this article.
1. Modify catalina.sh
Go to the tomcat installation directory / bin, find catalina.sh, and make a backup first.
Make changes to the local catalina.sh. Here, for example, change the log directory to / data/logs, that is, change $CATALINA_BASE/logs/catalina.out to CATALINA_OUT=/data/logs.
2. Modify logging.properties
Go to the tomcat installation directory / conf/, to find logging.properties and make a backup first.
Modify the local logging.properties to change all ${catalina.base} / logs to / data/logs
3. Modify server.xml
Go to the tomcat installation directory / conf/, to find server.xml and make a backup first.
Modify the local server.xml and change the red box below to directory= "/ data/logs"
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.
5. Establish soft links
Enter the tomcat directory and execute ln-s / data/logs. / logs
You can establish a link to / data/logs for the logs directory.
Here only describes the linux system to modify the default logs method, the windows system is similar.
Thank you for reading this article carefully. I hope the article "how to modify the default input log path of tomcat in linux system" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and follow the industry information channel. More related knowledge is waiting for you to learn!
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.