要增加apche效能可以用mod_cache

httpd.conf加入

# Sample Cache Configuration
#
LoadModule cache_module modules/mod_cache.so

<IfModule mod_cache.c>
#LoadModule disk_cache_module modules/mod_disk_cache.so
<IfModule mod_disk_cache.c>
CacheRoot c:/cacheroot
CacheSize 256
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
</IfModule>

LoadModule mem_cache_module modules/mod_mem_cache.so
<IfModule mod_mem_cache.c>
CacheEnable mem /
MCacheSize 4096
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048
</IfModule>
</IfModule>




























mod_mem_cache沒看到這個module,據說沒實作..

詳細中文解釋

其他調校介紹:
http://linuxgazette.net/123/vishnu.html
http://httpd.apache.org/docs/2.0/misc/perf-tuning.html
文章標籤
全站熱搜
創作者介紹
創作者 darren2000 的頭像
darren2000

四個字 堅持到底

darren2000 發表在 痞客邦 留言(0) 人氣(819)