<?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>系统运维 &#187; apache日志</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/apache%E6%97%A5%E5%BF%97/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Wed, 01 Apr 2026 08:27:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CentOS Linux系统下apache日志文件设置（每天单独生成一个日志文件）</title>
		<link>https://www.osyunwei.com/archives/777.html</link>
		<comments>https://www.osyunwei.com/archives/777.html#comments</comments>
		<pubDate>Thu, 03 Nov 2011 13:49:06 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache日志]]></category>

		<guid isPermaLink="false">http://w66416.s75.chinaccnet.cn/?p=777</guid>
		<description><![CDATA[引言： Apache默认安装下，日志记录只有一个文件，时间久了之后，这个文件会变的很大，管理员要想查看分析日志，光打开日志就要花费很长时间，甚至还会影响服务器运行。 下面教大家设置apache，让服务器每天单独生成一个日志文件，这样管理、分析日志会方便很多。 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 ##################################################################################### vi /etc/httpd/conf/httpd.conf  #编辑文件 #ErrorLog logs/error_log  #注释此行，添加下面这行 ErrorLog "&#124;rotatelogs /var/log/httpd/error_log%Y%m%d.log 86400 480"  #每天单独生成一个日志文件 #CustomLog logs/access_log common  #注释此行，添加下面这行 CustomLog "&#124;rotatelogs /var/log/httpd/access_log%Y%m%d.log 86400 480" common  #每天单独生成一个日志文件 ###################################################################################### 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 扩展：如果想禁止Apache日志文件，可以设置如下 ErrorLog /dev/null  #禁用错误日志 CustomLog /dev/null common  #禁用访问日志 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/777.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » CentOS Linux系统下apache日志文件设置（每天单独生成一个日志文件）<p><a rel="bookmark" href="https://www.osyunwei.com/archives/777.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/777.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
