一 nginx
1,./configure --with-pcre=/home/passport/source-tar/pcre-8.12 --prefix=/home/passport/nginx/
切记:--with-pcre 是指源码的位置,傻了2次了
2 make && make install
3修改配置fastcgi_params 加上fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
二 PHP
1 libevent
./configure --prefix=/home/passport/lib/libevent
2 PHP
./configure --prefix=/home/passport/php/ --enable-fpm --with-libevent-dir=/home/passport/lib/libevent/
修改php fpm配置文件:
pm.min_spare_servers = 5
pm.max_spare_servers = 35
pm.start_servers = 20
三 测试PHP