码迷,mamicode.com
首页 > 系统相关 > 详细

linux下一些常用软件的编译安装命令

时间:2014-07-19 02:12:55      阅读:266      评论:0      收藏:0      [点我收藏+]

标签: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下一些常用软件的编译安装命令

标签:linux mysql nginx apache php keepalived

原文地址:http://skindx.blog.51cto.com/2855260/1439864

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!