chaosxin 发表于 2018-11-18 09:53:08

查看Nginx、Apache、MySQL和PHP

  

  - 查看nginx编译参数:
  ```
  # /usr/local/nginx/sbin/nginx -V
  nginx version: nginx/1.12.1
  built by gcc 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
  built with OpenSSL 1.0.1e-fips 11 Feb 2013
  TLS SNI support enabled
  configure arguments: --prefix=/usr/local/nginx --with-http_ssl_module
  ```
  - 查看apache编译参数:
  ```
  # cat /usr/local/apache2.4/build/config.nice
  #! /bin/sh
  #
  # Created by configure
  

  "./configure" \
  "--prefix=/usr/local/apache2.4" \
  "--with-apr=/usr/local/apr" \
  "--with-apr-util=/usr/local/apr-util" \
  "--enable-so" \
  "--enable-mods-shared=most" \
  "$@"
  ```
  - 查看php-fpm编译参数:
  ```
  # /usr/local/php-fpm/bin/php -i |grep configure
  Configure Command =>'./configure''--prefix=/usr/local/php-fpm' '--with-config-file-path=/usr/local/php-fpm/etc' '--enable-fpm' '--with-fpm-user=php-fpm' '--with-fpm-group=php-fpm' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-pdo-mysql=/usr/local/mysql' '--with-mysql-sock=/tmp/mysql.sock' '--with-libxml-dir' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-freetype-dir' '--with-iconv-dir' '--with-zlib-dir' '--with-mcrypt' '--enable-soap' '--enable-gd-native-ttf' '--enable-ftp' '--enable-mbstring' '--enable-exif' '--with-pear' '--with-curl' '--with-openssl'
  ```
  - 查看mysql编译参数:
  ```
  # cat /usr/local/mysql/bin/mysqlbug|grep configure
  ```
  




页: [1]
查看完整版本: 查看Nginx、Apache、MySQL和PHP