wiki:configure

./configure --xxx

Nginx / Tengine

./configure --prefix=/data1/env/nginx \
--http-client-body-temp-path=/dev/shm/client_temp \
--http-proxy-temp-path=/dev/shm/proxy_temp \
--http-fastcgi-temp-path=/dev/shm/fastcgi_temp \
--http-uwsgi-temp-path=/dev/shm/uwsgi_temp \
--http-scgi-temp-path=/dev/shm/scgi_temp \
--user=www \
--group=www \
--add-module=ngx_devel_kit-0.2.19 \
--add-module=lua-nginx-module-0.9.15 \
--with-http_concat_module \
--with-http_image_filter_module \
--with-http_realip_module

PHP / PHP-FPM

./configure --prefix=/data1/env/php-fpm \
--with-config-file-scan-dir=/data1/env/php-fpm/lib/phpini.d \
--with-libdir=lib64 --with-fpm-user=www --with-fpm-group=www \
--enable-fpm --enable-cgi --disable-ipv6 --with-libxml-dir --with-pcre-regex \
--with-openssl --with-zlib --enable-zip --with-bz2 --with-curl --with-mhash --with-imap \
--with-imap-ssl --enable-ftp --enable-mbstring --with-mcrypt --with-gettext --enable-sockets \
--with-kerberos --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir \
--enable-gd-native-ttf --enable-gd-jis-conv --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-pdo-mysql \
--enable-mysqlnd --enable-soap --enable-bcmath --enable-exif

PERCONA / MySQL

cmake . -DSYSCONFDIR=/etc -DCMAKE_INSTALL_PREFIX=/data1/env/mysql \
-DMYSQL_DATADIR=/data1/env/mysql/data -DCMAKE_BUILD_TYPE=Release -DWITH_DEBUG=OFF \
-DWITH_VALGRIND=OFF -DENABLE_DEBUG_SYNC=OFF -DWITH_SSL=bundled -DWITH_UNIT_TESTS=OFF \
-DWITH_ZLIB=bundled -DWITH_PARTITION_STORAGE_ENGINE=ON -DWITH_INNOBASE_STORAGE_ENGINE=ON \
-DWITH_ARCHIVE_STORAGE_ENGINE=ON -DWITH_PERFSCHEMA_STORAGE_ENGINE=ON -DWITH_FEDERATED_STORAGE_ENGINE=ON \
-DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all -DENABLED_LOCAL_INFILE=ON \
-DWITH_EMBEDDED_SERVER=0 -DINSTALL_LAYOUT=STANDALONE -DCOMMUNITY_BUILD=ON -DMYSQL_SERVER_SUFFIX='-percona'
Last modified 9 years ago Last modified on 10/21/15 14:59:48