查看mysqk,php,apache,nginx编译参数

发布时间:2017-11-18 23:21:42编辑:admin阅读(3566)

    由于服务器经过多个人维护,没有文档,需要迁移。但是必须知道编译参数才行

    下面列举几个常用的


    线上mysql编译参数:

    cat /usr/local/mysql/bin/mysqlbug|grep configure

     

    "./configure '--prefix=/usr/local/mysql' '--with-charset=utf8' '--with-extra-charsets=all' '--enable-static'"

     

    php编译参数:

    /usr/local/php/bin/php -i |grep configure

     

    './configure'  '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-config-file-path=/usr/local/php/etc' '--with-jpeg-dir=/usr/local/jpeg6/' '--with-png-dir=/usr/local/libpng/' '--with-freetype-dir=/usr/local/freetype/' '--with-zlib-dir' '--with-mysql=/usr/local/mysql/' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-curl=/usr/local/curl/' '--with-openssl' '--enable-mbstring' '--with-gd=/usr/local/gd/' '--enable-magic-quotes' '--with-gettext' '--with-iconv'

     

    apache编译参数:

    cat /usr/local/apache/build/config.nice

     

    "./configure" \

    "--prefix=/usr/local/apache" \

    "--with-mysql=/usr/local/mysql/" \

    "--enable-module=so" \

    "--enable-mods-shared=max" \

    "--enable-rewrite=shared" \

    "--enable-mem-cache" \

    "--enable-cache" \

     

    nginx编译参数:

    /usr/local/nginx/sbin/nginx -V

     

    --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre


关键字