编译参数

nginx

./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/nginx/sbin/nginx --conf-path=/usr/local/nginx/etc/nginx.conf --error-log-path=/usr/local/nginx/log/error.log --pid-path=/usr/local/nginx/nginx.pid --user=nginx --group=nginx --with-http_ssl_module --with-http_flv_module --with-http_gzip_static_module --http-log-path=/usr/local/nginx/log/access.log --http-client-body-temp-path=/usr/local/nginx/client --http-proxy-temp-path=/usr/local/nginx/proxy --http-fastcgi-temp-path=/usr/local/nginx/fcgi --with-http_stub_status_module --lock-path=/usr/local/nginx/lock/nginx.lock 

 

 

apache

./configure --prefix=/usr/local/apache2 --with-mpm=worker --enable-cache --enable-disk-cache --enable-mem-cache --enable-proxy=share  --enable-file-cache --enable-nonportable-atomics --enable-mods-shared=most --enable-so --enable-rewrite --enable-ssl --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre --with-ssl=/usr/local/openssl 

 

php 

./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc --with-mysql --with-mysqli --with-pdo-mysql --with-iconv --with-libxml-dir --with-gd --with-freetype-dir --with-xmlrpc --with-curl --with-zlib --with-jpeg-dir --with-png-dir --with-openssl --enable-fpm --enable-static --disable-inline-optimization --enable-sockets --enable-zip --enable-calendar --enable-bcmath --enable-soap --enable-ftp --with-mcrypt=/usr/local/libmcrypt/ --enable-shared --disable-fileinfo --with-apxs2=/usr/local/apache/bin/apxs --enable-mbstring=all 

posted @ 2015-08-11 13:03  河边的老牛  阅读(176)  评论(0编辑  收藏  举报