首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > Apache >

apache服务器 上的缓存配置

2012-12-26 
apache服务器 下的缓存配置刚刚配置了下linux下apache的缓存配置,配置内容如下IfModule mod_cache.c#Loa

apache服务器 下的缓存配置

刚刚配置了下linux下apache的缓存配置,配置内容如下

<IfModule mod_cache.c>#LoadModule disk_cache_module modules/mod_disk_cache.so# If you want to use mod_disk_cache instead of mod_mem_cache,# uncomment the line above and comment out the LoadModule line below.<IfModule mod_disk_cache.c>CacheRoot "/var/www/cacheroot"CacheEnable disk /CacheDirLevels 5CacheDirLength 3</IfModule> <IfModule mod_mem_cache.c>CacheEnable mem /MCacheSize 8192MCacheMaxObjectCount 10000MCacheMinObjectSize 1MCacheMaxObjectSize 51200</IfModule></IfModule>


配置完重启服务器,感觉速度是变快了,但是奇怪的是,我在"/var/www/cacheroot"下面却没有发现缓存文件apache服务器 上的缓存配置 (之前已经导入mod_cache.so、mod_disk_cache.so和mod_mem_cache.so)

相关内容:http://httpd.apache.org/docs/2.2/mod/mod_cache.html

热点排行