zoukankan      html  css  js  c++  java
  • 获取LAMP与LNMP的编译参数

    1.查看nginx的编译参数
    [root@LNMP ~]# /application/nginx/sbin/nginx -V
    nginx version: nginx/1.6.3
    built by gcc 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
    TLS SNI support enabled
    configure arguments: --user=nginx --group=nginx
    --prefix=/application/nginx-1.6.3/
    --with-http_stub_status_module
    --with-http_ssl_module

    2.查看apache的编译参数
    [root@LAMP ~]# cat /application/apache/build/config.nice
    #! /bin/sh
    #
    # Created by configure

    "./configure"
    "--prefix=/application/apache2.2.27"
    "--enable-deflate"
    "--enable-expires"
    "--enable-headers"
    "--enable-modules=most"
    "--enable-so"
    "--with-mpm=worker"
    "$@"

    3.查看mysql的编译参数
    [root@LAMP ~]# grep CONFIGURE_LINE /application/mysql/bin/mysqlbug
    CONFIGURE_LINE="./configure
    '--prefix=/application/mysql5.1.72' '
    --with-unix-socket-path=/application/mysql5.1.72/tmp/mysql.sock' '
    --localstatedir=/application/mysql5.1.72/data' '
    --enable-thread-safe-client' '
    --with-mysqld-user=mysql' '
    --with-big-tables' '
    --without-debug' '
    --with-pthread' '
    --enable-assembler' '
    --with-extra-charsets=complex' '
    --with-readline' '
    --with-ssl' '
    --with-embedded-server' '
    --enable-local-infile' '
    --with-plugins=partition,innobase' '
    --with-mysqld-ldflags=-all-static' '
    --with-client-ldflags=-all-static'"
    `test -n "$CONFIGURE_LINE" && echo "Configure command: $CONFIGURE_LINE"`

    4.查看php的编译参数
    [root@LAMP ~]# /application/php/bin/php -i |grep configure
    Configure Command => './configure' '
    --prefix=/application/php5.3.27' '
    --with-apxs2=/application/apache/bin/apxs' '
    --with-mysql=/application/mysql' '
    --with-xmlrpc' '
    --with-openssl' '
    --with-zlib' '
    --with-freetype-dir' '
    --with-gd' '
    --with-jpeg-dir' '
    --with-png-dir' '
    --with-iconv=/usr/local/libiconv' '
    --enable-short-tags' '
    --enable-sockets' '
    --enable-zend-multibyte' '
    --enable-soap' '
    --enable-mbstring' '
    --enable-static' '
    --enable-gd-native-ttf' '
    --with-curl' '
    --with-xsl' '
    --enable-ftp' '
    --with-libxml-dir'

    说明:/application为各个服务的安装路径

  • 相关阅读:
    zedboard如何从PL端控制DDR读写(四)
    ZC706以太网扩展板接口
    软件测试作业3--Junit、hamcrest、eclemmat的安装和使用
    软件测试作业2
    软件测试作业1--描述Error
    安装Mysql 5.7.1
    Servlet生命周期+工作原理
    VS中工程的“依赖”,“库目录”,“包含目录”
    Linux C 重定向简单范例
    Java中关键字final用法
  • 原文地址:https://www.cnblogs.com/sykblogs/p/9071125.html
Copyright © 2011-2022 走看看