nginx apache mysql php 常用编译参数

nginx参考编译参数:

--prefix=/home/admin/nginx

 

 

mysql参考编译参数:

./configure  \
--prefix=/home/admin/mysql \
--sysconfdir=/home/admin/mysql \
--localstatedir=/home/admin/mysql/data \
--with-unix-socket-path=/home/admin/mysql/tmp/mysql.sock \
--with-charset=gbk \
--with-extra-charsets=gb2312,utf8 \
--with-plugins=innobase \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static

php 参考编译参数 for apache

./configure  \
--prefix=/home/admin/php \
--with-apxs2=/home/admin/apache/bin/apxs \
--with-zlib-dir=/usr/include \
--with-ttf \
--with-curl=/usr \
--enable-ftp \
--enable-mbstring

php 参考编译参数for  nginx:

./configure  \
--prefix=/home/admin/php \
--enable-fpm \
--with-config-file-path=/home/admin/php/etc \
--with-mysql=mysqlnd \
--with-pdo-mysql=mysqlnd \
--enable-mbstring \
--with-mcrypt

posted on 2012-04-11 10:50  mashuaimama  阅读(217)  评论(0编辑  收藏  举报

导航