20,480 bytes.The-r flag is valid only with the-n flag. Otherwise, it will be ignored.Exit statusThe command returns the following exit values:0Completed successfully.>0An error occurred.ExampleTo display the last ten lines of the notes file, enter:Tail notes to specify the number of rows to start reading from the end of the Notes file, enter:Tail-n notesTo start with the No. 200 byte, each time a page of notes files is displayed, enter:Tail-c +200 Notes | PgTo track the growth of a file, enter:
value on the line. If your CPU has DRNG features, you can take advantage of the hardware to increase the speed of the entropy pool. by Cat/proc/cpuinfo | grep Rdrand can see if its CPU is supported, and generally Intel's CPU for the Ivy_bridge architecture is supported (i3, i5 need to be aware of that architecture, i7 and Xeon are basically supported), and AMD's CPUs are supported after 2015. (If you are a virtual machine you need to turn on additional parameters). If your hardware does not sup
The Tomcat installation directory under the logs directory defaults to produce 4 kinds of log files: Catalina.*.log,host-manager.*.log,localhost.*.log,manager.*.log. Sometimes log files
Today, start Tomcat can not start, reported the following error:
Org.apache.catalina.core.StandardContext startinternal
Severe:error Listenerstart
Org.apache.catalina.core.StandardContext startinternal
Severe:context [/******] startup failed due to previous errors
On the internet to find more than n articles, are not to the point.
Later found a method on the foreign website
Http://grails.1312388.n4.nabble.com/Deployment-problems-td4628710.html.
I'
1, under the LOGROTATE.D a new file, file name random
Touch/etc/logrotate.d/tomcat-log-cut
2, the contents of the document:
/home/mes/tomcat8-mes/logs/catalina.out {
Su root rootDailyRotate 14DateextDateFormat.%y%m%d#size 100NotifemptyMissingokCopytruncate}
Parameter explanation Please refer to: http://blog.csdn.net/maosijunzi/article/details/78813573
3, execute the following command to test a
/usr/s
View log: Tail-f catalina.out
[Linux log garbled] [Linux use Tail-f to view the log appears in Chinese garbled solution] [Solution to view Tomcat log garbled in Linux] [Linux Client Chinese garbled problem Xshell]
1, vim modify the server code, the code to "ZH_CN." UTF-8
=org.apache.log4j.dailyrollingfileappenderLog4j.appender.r.file=${catalina.home}/logs/tomcat.logLog4j.appender.r.layout=org.apache.log4j.patternlayoutLog4j.appender.r.layout.conversionpattern=%d{yyyy. Mm.dd HH:mm:ss}%5p%c{1} (%l):? %m%n
Log4j.logger.org.apache=info, RLog4j.logger.org.apache.catalina.core.ContainerBase. [Catalina]. [Localhost]=debug, RLog4j.logger.org.apache.catalina.core=info, RLog4j.logger.org.apache.catalina.session=info, R
Then put the new log4j.properties in the%catalina_hom
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.