• 获取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为各个服务的安装路径

  • 相关阅读:
    yii2框架(一)安装
    修改hosts搭建本地站点
    php版本管理工具composer安装及使用
    nodejs学习笔记Node.js 调试命令
    angular自定义指令命名的那个坑
    MongoDB Windows环境安装及配置( 一)
    JavaSE 面试题: 类初始化和实例初始化等
    JavaSE 面试题: 成员变量与局部变量
    JavaSE 面试题: 方法的参数传递机制
    JavaSE 笔试题: 自增变量
  • 原文地址:https://www.cnblogs.com/sykblogs/p/9071125.html
Copyright © 2020-2023  润新知