文档中心 > 云服务器 ECS

云服务器 ECS Linux系统 Nginx Apache MySQL PHP 编译参数查看命令汇总

更新时间: 访问次数:2516

查看 nginx 编译参数


  
  
  1. root@ubuntu:~# nginx -V
  2. nginx: nginx version: nginx/1.0.8
  3. nginx: built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
  4. nginx: TLS SNI support enabled
  5. nginx: configure arguments: --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-http_stub_status_module --with-http_flv_module --with-http_ssl_module --with-http_dav_module --with-http_gzip_static_module --with-http_realip_module --with-http_sub_module --add-module=../substitutions4nginx-read-only --add-module=../ngx_cache_purge-1.4 --add-module=../ngx_http_upstream_keepalive-d9ac9ad67f45 --add-module=../agentzh-memc-nginx-module-5b0504b --add-module=../agentzh-srcache-nginx-module-10d968e

查看 apache 编译参数


  
  
  1. root@ubuntu:~# cat /usr/local/apache2/build/config.nice
  2. #! /bin/sh
  3. #
  4. # Created by configure
  5. "./configure" \
  6. "--prefix=/usr/local/apache2" \
  7. "--with-included-apr" \
  8. "--enable-so" \
  9. "--enable-deflate=shared" \
  10. "--enable-expires=shared" \
  11. "--enable-rewrite=shared" \
  12. "--enable-static-support" \
  13. "--disable-userdir" \
  14. "$@"

查看 mysql 编译参数


  
  
  1. root@ubuntu:~# find /usr -name mysqlbug
  2. /usr/bin/mysqlbug
  3. root@ubuntu:~# cat "/usr/bin/mysqlbug"|grep configure
  4. # This is set by configure
  5. CONFIGURE_LINE="../configure '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--exec-prefix=/usr' '--libexecdir=/usr/sbin' '--datadir=/usr/share' '--localstatedir=/var/lib/mysql' '--includedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-server-suffix=-3ubuntu12.7' '--with-comment=(Ubuntu)' '--with-system-type=debian-linux-gnu' '--enable-shared' '--enable-static' '--enable-thread-safe-client' '--enable-assembler' '--enable-local-infile' '--with-pstack' '--with-fast-mutexes' '--with-big-tables' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' '--with-mysqld-user=mysql' '--with-libwrap' '--without-readline' '--with-ssl' '--without-docs' '--with-extra-charsets=all' '--with-plugins=max' '--without-ndbcluster' '--with-embedded-server' '--with-embedded-privilege-control' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CC=gcc' 'CFLAGS=-O3 -DBIG_JOINS=1 -fno-strict-aliasing' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXX=g++' 'CXXFLAGS=-O3 -DBIG_JOINS=1 -felide-constructors -fno-exceptions -fno-rtti -fno-strict-aliasing'"

查看 php 编译参数


  
  
  1. root@ubuntu:~# php5-fpm -i|grep configure
  2. Configure Command => './configure' '--prefix=/usr/local/php-5.3.3' '--with-config-file-path=/etc/php5' '--with-mcrypt' '--with-gettext' '--with-mysql' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-curl' '--with-freetype-dir' '--enable-gd-native-ttf' '--enable-mbstring' '--enable-sockets' '--enable-fpm' '--with-zlib' '--with-fpm-user=www-data' '--with-fpm-group=www-data' '--enable-xml' '--enable-bcmath' '--with-mhash'

 

如果问题还未能解决,您可以到阿里云社区进行免费咨询或联系云市场商家寻求帮助。

 

FAQ

关于此文档暂时还没有FAQ
返回
顶部