博文

目前显示的是标签为“eAccelerator”的博文

eAccelerator 配置参数详解

eaccelerator.shm_size=”32″ eAccelerator 可以使用的共享内存的数量 (以兆为单位) . “0” 是指操作系统的默认值. 默认值是 “0”.可根据服务器的实际情况来调整,16,32,64,128都是可以的。 eaccelerator.cache_dir=””/tmp/eaccelerator” 这个目录是给磁盘缓存使用. eAccelerator 在这里储存预先编译好的代码, 进程数据, 内容以及用户的自定义内容. 同样的数据也能被储存在共享内存中 (这样可以提高访问速度). 默认的设置是 “/tmp/eaccelerator”. eaccelerator.enable=”1″ 开启或关闭 eAccelerator。”1″ 为开启,”0″ 为关闭。默认值为 “1”。 eaccelerator.optimizer=”1″ 启或关闭内部优化器,可以提升代码执行速度。”1″ 为开启,”0″ 为关闭。默认值为 “1”。 eaccelerator.check_mtime=”1″ 打开或者关闭 PHP 的文件修改检查. “1” 是指打开, “0” 是指关闭. 如果您在修改以后重新编译 PHP 的文件,那么您应当设置为 “1”. 默认值是 “1”. eaccelerator.debug=”0″ 开启或关闭调试日志记录。”1″ 为开启,”0″ 为关闭。默认值为 “0”。会将缓存命中得记录写入日志。 eaccelerator.filter=”” 判断哪些 PHP 文件必须缓存。您可以指定缓存和不缓存的文件类型(如 “*.php *.phtml”等) 如果参数以 ...

Freebsd9.0安装Nginx+PHP-FPM+MySQL+eAccelerator+Memcached+phpMyAdmin

图片
更新 ports 第一种方式: portsnap (自带) 首先修改/etc/portsnap.conf SERVERNAME=portsnap.cn.freebsd.org 1.下载压缩的 Ports 套件快照到 /var/db/portsnap # portsnap fetch 2.假如是首次运行 Portsnap, 则需要将快照释放到 /usr/ports: # portsnap extract 如果您已经有装好的 /usr/ports 而只想更新, 则应执行下面的命令: # portsnap update 完成后需要退出终端重新登陆。 复制cvsup更新配置文件 # cp /usr/share/examples/cvsup/ports-supfile /etc/supfile 下面是我使用的配置,屏蔽了desktop等一些服务器用不到的软件包,源已经改成中国镜像,速度比国外的主服务器要快很多 # $FreeBSD: release/9.0.0/share/examples/cvsup/ports-supfile 219858 2011-03-22 04:31:35Z glebius $ # # This file contains all of the “CVSup collections” that make up the # FreeBSD-current ports collection. # # CVSup (CVS Update Protocol) allows you to download the latest CVS # tree (or any branch of development therefrom) to your system easily # and efficiently (far more so than with sup, which CVSup is aimed # at replacing). If you’re running CVSup interactively, and are # currently using an X display server, you should run CVSup as follows # to keep your CVS tree up-to-date: # # cvsup ...