標籤:linux mysql nginx apache php keepalived
PHP編譯參數 Apache:
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-curl --with-mcrypt --enable-mbstring --with-iconv --with-gd --with-jpeg-dir=/usr/local/lib --enable-pdo --with-pdo-mysql=/usr/local/mysql5.5.25/ --with-mysqli=/usr/local/mysql5.5.25/bin/mysql_config --with-mysql=/usr/local/mysql5.5.25/
PHP編譯參數 NGINX:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/lib --enable-pdo --with-pdo-mysql=/usr/local/mysql5.6.19/ --with-mysqli=/usr/local/mysql5.6.19/bin/mysql_config --with-mysql=/usr/local/mysql5.6.19/ --with-libxml-dir --enable-ftp --enable-sockets --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-zlib-dir --enable-gd-native-ttf --enable-magic-quotes --with-iconv --enable-mbstring=all --disable-cgi --with-openssl --with-mcrypt --enable-bcmath --enable-calendar --enable-exif --enable-libxml --with-bz2 --with-curl --with-xmlrpc --with-gettext --disable-cli --disable-debug --enable-zend-multibyte --with-mhash --enable-pcntl --enable-sysvsem --enable-inline-optimization --enable-soap --disable-ipv6 --enable-fpm
MYSQL:
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql5.6.19 -DMYSQL_DATADIR=/data/mysql -DMYSQL_UNIX_ADDR=/tmp/mysql.sock -DWITH_INNOBASE_STORAGE_ENGINE=1 -DMYSQL_TCP_PORT=3306 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_DEBUG=0
nginx:
./configure --prefix=/usr/local/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/tmp/nginx/nginx.pid --lock-path=/tmp/nginx/nginx.lock --user=nginx --group=nginx --with-pcre --with-http_ssl_module --with-http_flv_module --with-http_stub_status_module --error-log-path=/usr/local/nginx/logs/error.log --http-log-path=/usr/local/nginx/logs/access.log --http-fastcgi-temp-path=/tmp/nginx/fcgi/
apache:
./configure --with-included-apr --prefix=/usr/local/apache --with-pcre=/usr/local/pcre/
keepalived:
./configure --prefix=/usr/local/keepalived --with-kernel-dir=/usr/src/kernels/2.6.32-279.el6.x86_64
linux下一些常用軟體的編譯安裝命令