Linux系统 nginx Apache MySQL PHP编译参数查看命令汇总
时间:2016-01-02 22:56 来源:linux.it.net.cn 作者:IT
查看nginx编译参数:
root@ubuntu:~# nginx -V
nginx: nginx version: nginx/1.0.8
nginx: built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
nginx: TLS SNI support enabled
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编译参数:
root@ubuntu:~# cat /usr/local/apache2/build/config.nice
#! /bin/sh
#
# Created by configure
"./configure" \
"--prefix=/usr/local/apache2" \
"--with-included-apr" \
"--enable-so" \
"--enable-deflate=shared" \
"--enable-expires=shared" \
"--enable-rewrite=shared" \
"--enable-static-support" \
"--disable-userdir" \
"$@"
查看mysql编译参数:
root@ubuntu:~# find /usr -name mysqlbug
/usr/bin/mysqlbug
root@ubuntu:~# cat "/usr/bin/mysqlbug"|grep configure
# This is set by configure
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编译参数:
root@ubuntu:~# php5-fpm -i|grep configure
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'
(责任编辑:IT)
查看nginx编译参数: root@ubuntu:~# nginx -V nginx: nginx version: nginx/1.0.8 nginx: built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5) nginx: TLS SNI support enabled 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编译参数: # # Created by configure
"--prefix=/usr/local/apache2" \ "--with-included-apr" \ "--enable-so" \ "--enable-deflate=shared" \ "--enable-expires=shared" \ "--enable-rewrite=shared" \ "--enable-static-support" \ "--disable-userdir" \ "$@"
root@ubuntu:~# find /usr -name mysqlbug /usr/bin/mysqlbug root@ubuntu:~# cat "/usr/bin/mysqlbug"|grep configure # This is set by configure 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编译参数: root@ubuntu:~# php5-fpm -i|grep configure 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' (责任编辑:IT) |