<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ubuntu,debian,redhat -linuxany.com &#187; java</title>
	<atom:link href="http://www.linuxany.com/archives/tag/java/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Jan 2012 08:59:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>使用cronolog分割tomcat的catalina.out日志文件</title>
		<link>http://www.linuxany.com/archives/1254.html</link>
		<comments>http://www.linuxany.com/archives/1254.html#comments</comments>
		<pubDate>Fri, 16 Apr 2010 07:32:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[catalina]]></category>
		<category><![CDATA[cronolog]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1254</guid>
		<description><![CDATA[一个对日志切分的小工具，其主页在http://cronolog.org/，我们也用它来切分tomcat的日志。 进入Tomcat的bin目录，打开catalina.sh文件，找到tomcat启动的相关行，或者你直接查找catalina.out，一般我们修改下面行中的内容（因为我们一般不会在-security条件下运行）， “$_RUNJAVA” $JAVA_OPTS $CATALINA_OPTS \&#160;&#160; &#160;-Djava.endorsed.dirs=”$JAVA_ENDORSED_DIRS” -classpath “$CLASSPATH” \&#160;&#160; &#160;-Dcatalina.base=”$CATALINA_BASE” \&#160;&#160; &#160;-Dcatalina.home=”$CATALINA_HOME” \&#160;&#160; &#160;-Djava.io.tmpdir=”$CATALINA_TMPDIR” \&#160;&#160; &#160;org.apache.catalina.startup.Bootstrap “$@” start&#160; \&#160;&#160; &#160;&#62;&#62; “$CATALINA_BASE”/logs/catalina.out 2&#62;&#38;1 &#38; 修改 org.apache.catalina.startup.Bootstrap “$@” start&#160; \&#62;&#62; “$CATALINA_BASE”/logs/catalina.out 2&#62;&#38;1 &#38; 为 org.apache.catalina.startup.Bootstrap “$@” start 2&#62;&#38;1 \&#124; /usr/local/sbin/cronolog “$CATALINA_BASE”/logs/catalina.%Y-%m-%d.out &#62;&#62; /dev/null &#38; 同时，上面有一行 touch “$CATALINA_BASE”/logs/catalina.out 可以注释掉，完成之后重起Tomcat就可以了，在logs目录下可以看到catalina.2010-04-16.out的日志，是按日生成的。 您还可能感兴趣的内容给Tomcat,Apache配置gzip压缩(HTTP压缩)功能关于mod_jk的一些命令从原理上解决Tomcat中文问题server.xml 中各个域的说明Tomcat:如何在你的应用程序中应用追踪]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1254.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

