Linux下查看nginx apache mysql php的编译参数

  

  由于工作的需要,有时候需要在一台不是你参与编译的环境调试环境,这就需要知道nginx, apache, mysql, php的编译参数,以下小方法能快速让你了解默认的服务器里的编译参数   

  

  <强>   快速查看服务器软件的编译参数:   
     1,nginx编译参数:   
  your_nginx_dir/sbin/nginx -v    
  2,apache编译参数:   
  猫your_apache_dir/构建/config.nice    
  3、php编译参数:   
  your_php_dir/bin/php - | grep configure    
  4,mysql编译参数:   
  猫your_mysql_dir/bin/mysqlbug | grep配置   

  

  
  <强>   以下是完整的实操例子:      

  

  查看获取nginx的编译参数:   
  复制代码,代码如下:   
  root@www ~ #/usr/local/nginx/sbin/nginx - v   
  nginx: nginx版本:nginx/1.0.8   
  nginx:由gcc 4.3.2 (Debian 4.3.2-1.1)   
  nginx:配置参数:用户www - data www - data前缀组===/usr/地方/nginx -with-http_stub_status_module -with-http_gzip_static_module   

  

  查看获取apache的编译参数:   
  复制代码,代码如下:   
  #猫/usr/local/apache2/build/config.nice root@www ~   
  # !/bin/sh   
  #   
  #创建的配置   
  “。/configure"\   
  “前缀=/usr/地方/输入“\   
  “-enable-so"\   
  “-enable-modules=all"\   
  “-enable-mods-shared=all"\   
  “-enable-layout=Apache"\   
  “启用ssl=static"\   
  “使用ssl=/usr/地方/openssl"\   
  “-enable-rewrite"\   
  “-enable-suexec"\   
  “-with-suexec-logfile=/www/logs/suexec.log"\   
  “-with-suexec-uidmin \=500”   
  “-with-suexec-gidmin \=100”   
  “-with-suexec-caller=nobody"\   
  “-with-suexec-docroot=/www"\   

  

  查看获取mysql的编译参数:   
  复制代码,代码如下:root@www ~ # grep/usr/local/mysql/bin/mysqlbug配置   
  #这是由配置设置   
  CONFIGURE_LINE=啊?配置& # 39;前缀=/usr/地方/mysql4′& # 39; -sysconfdir=/等# 39;& # 39;-enable-assembler& # 39;& # 39;-without-debug& # 39;& # 39;-with-client-ldflags=-all-static& # 39;& # 39;-with-mysqld-ldflags=-all-static& # 39;& # 39;-localstatedir=/www/mysql # 39;      http://www.bbqmw.net/qm_bbqmbd/,& # 39;-with-big-tables& # 39;& # 39;-with-low-memory& # 39;& # 39;-with-extra-charsets=所有# 39;& # 39;-enable-thread-safe-client& # 39;& # 39;-with-pthread& # 39;& # 39;-with-unix-socket-path=/tmp/mysql.sock& # 39;“   

  

  参看获取php的编译参数:   
  复制代码,代码如下:   
  (root@www ~) #/usr/local/php5/bin/php我| grep配置   
  配置命令=比;& # 39;。/配置# 39;& # 39;前缀=/usr/地方/php5′& # 39; -enable-exif& # 39;& # 39;-enable-mbstring& # 39;& # 39;-with-iconv& # 39;& # 39;使用curl=/usr # 39;& # 39;-with-gdbm& # 39;& # 39;-with-gettext& # 39;& # 39;-enable-calendar& # 39;& # 39;-enable-magic-quotes& # 39;& # 39;-enable-wddx& # 39;& # 39;-enable-ftp& # 39;& # 39;-enable-inline-optimization& # 39;& # 39;与gd=/usr/当地# 39;& # 39;-with-zlib& # 39;& # 39;-enable-gd-native-ttf& # 39;& # 39;-with-t1lib=/usr/当地# 39;& # 39;-with-zlib-dir=/usr # 39;& # 39;-with-ttf& # 39;& # 39;-with-freetype-dir=/usr # 39;& # 39;-with-gd& # 39;& # 39;-with-png-dir=/usr # 39;& # 39;-with-jpeg-dir=/usr # 39;& # 39;使用mysql=/usr/地方/mysql4′& # 39; -enable-force-cgi-redirect& # 39;& # 39;-with-apxs2=/usr/地方/输入/bin/apxs& # 39;& # 39;-with-pdo-mysql=/usr/地方/mysql4′& # 39; -enable-sockets& # 39;& # 39;使用openssl=/usr/地方/openssl # 39;   

  

  
  

Linux下查看nginx apache mysql php的编译参数