PHP下免费的加速器,PHPAccelerator

http://php-accelerator.co.uk/ 可以下载,是zend的强劲对手,是免费的,我已经在用啦,效果还不错,修改 php.ini 加上:

  1. zend_extension = /usr/local/lib/php_accelerator_1.3.3r2.so
  2. phpa = on
  3. phpa.tweaks = on
  4. phpa.cache_dir = /tmp
  5. phpa.file_perms = 400
  6. phpa.cache_file_prune_period = 1h
  7. phpa.cache_file_ttl = 1d
  8. phpa.shm_size = 10
  9. phpa.shm_key = 0xc0deb00
  10. phpa.shm_perms = 666
  11. phpa.shm_user = nobody
  12. phpa.shm_group = nobody
  13. phpa.shm_release_at_exit = on
  14. phpa.shm_stats_check_period = 5m
  15. phpa.shm_ttl = 12h
  16. phpa.shm_max_processes = 512
  17. phpa.shm_lock_threshold0 = 10

apachectl graceful 就能用啦。具体参数看它的文档。