zoukankan      html  css  js  c++  java
  • 查看mysql,apache,php,nginx编译参数

    查看nginx编译参数:
    #/usr/local/nginx/sbin/nginx -V
     
    查看mysql编译参数:
    cat /usr/local/mysql/bin/mysqlbug | grep CONFIGURE_LINE

    查看apache编译参数:
    cat $apachehome$/build/config.nice

    查看php编译参数:
    $PHP$/bin/php -i | grep configure

    1)查看web服务的编译参数
      a.查看nginx的编译参数:
       /home/oldboy/run/nginx/sbin/nginx -V
     范例1:

    1. [root@VM-001 ~]# /home/oldboy/run/nginx/sbin/nginx -V  
    2. nginx version: nginx/0.8.50  
    3. built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)  
    4. configure arguments: --prefix=/app/nginx 

      提示:/home/oldboy/run/为普通用户起的nginx服务命令路径 
    b.查看apache的编译参数:
        cat /home/oldboy/run/apache/build/config.nice
     范例2:

    1. [root@VM-002 ~]# cat /home/oldboy/run/apache/build/config.nice   
    2. #! /bin/sh  
    3. #  
    4. # Created by configure  
    5.  
    6. "./configure"   
    7. "--prefix=/app/apache2.2.9"   
    8. "--enable-deflate"   
    9. "--enable-headers"   
    10. "--enable-modules=so"   
    11. "--enable-so"   
    12. "--with-mpm=worker"   
    13. "--enable-rewrite"   
    14. "--enable-cgi"   
    15. "$@" 

      提示:/home/oldboy/run/为普通用户起的apache服务命令路径

    2)查看MySQL数据库的编译参数:
    grep CONFIGURE_LINE /app/mysql/bin/mysqlbug
     提示:还发现很多人先cat,在grep,很不专业,应杜绝。
     范例3:

    1. [root@VM-001~]# grep CONFIGURE_LINE /app/mysql/bin/mysqlbug  
    2. CONFIGURE_LINE="./configure '--prefix=/app/mysql/' '--enable-assembler' '--with-extra-charsets=complex' '--enable-thread-safe-client' '--with-big-tables' '--with-readline' '--with-ssl' '--with-embedded-server' '--enable-local-infile' '--with-plugins=partition,innobase' '--with-plugin-PLUGIN'" 
    3. `test -n "$CONFIGURE_LINE"  && echo "Configure command: $CONFIGURE_LINE"` 

      提示:/app为mysql服务安装路径
    3)查看php编译参数:
    /app/php/bin/php -i|grep configure
     范例4:

    1. [root@VM-001 ~]# /app/php/bin/php -i|grep configure  
    2. Configure Command =>  './configure'  '--prefix=/app/php' '--with-apxs2=/app/apache/bin/apxs' '--with-mysql=shared,/app/mysql' '--with-ttf=shared' '--with-freetype-dir' '--with-gd' '--with-zlib' '--with-jpeg-dir' '--with-png-dir' '--with-iconv=/app/libiconv' '--enable-short-tags' '--enable-sockets' '--enable-zend-multibyte' '--enable-soap' '--with-openssl' '--enable-mbstring' '--enable-static' '--enable-gd-native-ttf' '--with-curl' '--with-xsl' '--enable-ftp' '--with-libxml-dir' 

      提示:/app为php服务安装路径


    本文来源 http://ohgenlong16300.blog.51cto.com/499130/846075

  • 相关阅读:
    Xcode工程文件打不开:cannot be opened because the project file cannot be parsed
    MAC系统压缩文件传到WINDOWS下出现乱码
    iOS-Xcode必备插件XAlign:瞬间优化你的代码
    那些不能错过的Xcode插件
    Xcode 5.0.1安装插件:规范注释生成器VVDocumenter + OSX 10.9.2
    由pushViewController说起可能出线的各种死法
    iPhone开发中从一个视图跳到另一个视图有三种方法:
    深入理解typedef
    通俗易懂地讲解 __block 变量
    Blocks Programming Topics
  • 原文地址:https://www.cnblogs.com/wajika/p/6232015.html
Copyright © 2011-2022 走看看