天天看点

查看Nginx,Apache,lighttpd,Mysql,Php的编译参数

   查看一些常见服务的在编译安装时的参数: 

1.Nginx 编译安装时的参数

[root@test ~]# /usr/local/nginx/sbin/nginx -V

nginx version: nginx/0.7.65

built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)

TLS SNI support disabled

configure arguments: --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-pcre=/software/pcre-8.01

2.PHP编译安装时的参数

[root@test ~]# /usr/local/php/bin/php -i |grep config

Configure Command =>  './configure'  '--prefix=/usr/local/php' '--with-config-file-path=/usr/local/php/etc' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-iconv-dir=/usr/local/env/libiconv' '--with-freetype-dir=/usr/local/env/freetype' '--with-jpeg-dir=/usr/local/env/jpeg' '--with-png-dir=/usr' '--with-zlib' '--with-libxml-dir=/usr/local/env/libxml2' '--with-gettext=/usr/local/env/gettext' '--enable-xml' '--enable-shmop' '--enable-inline-optimization' '--enable-exif' '--with-curl=/usr/local/env/curl' '--with-curlwrappers' '--enable-mbregex' '--enable-fastcgi' '--enable-fpm' '--enable-force-cgi-redirect' '--enable-mbstring' '--with-mcrypt=/usr/local/env/libmcrypt' '--with-gd=/usr/local/env/gd' '--enable-gd-native-ttf' '--with-openssl=/usr/local/env/openssl' '--with-mhash=/usr' '--enable-pcntl' '--enable-sockets' '--enable-soap'

3.Mysql编译安装时的参数

[root@test ~]# cat /usr/local/mysql/bin/mysqlbug |grep config

# This is set by configure

CONFIGURE_LINE="./configure '--prefix=/usr/local/mysql' '--enable-assembler' '--with-extra-charsets=complex' '--enable-thread-safe-client' '--with-big-tables' '--with-readline' '--with-ssl' '--with-embedded-server' '--enable-local-infile' '--withplugins=partition,innobase,myisammrg'"

4.apache编译安装时的参数

[root@test ~]# cat /opt/httpd/build/config.nice

#! /bin/sh

#

# Created by configure

"./configure" \

"--prefix=/opt/httpd/" \

"--enable-module=so" \

"--enable-module=rewrite" \

"--enable-shared=rewrite" \

"--enable-shared=max" \

"$@"

5.Lighttpd安装时的编译参数

[root@test ~]lighttpd -V

lighttpd-1.4.20 (ssl) - a light and fast webserver

Build-Date: Jan  6 2009 23:43:45

Event Handlers:

    + select (generic)

    + poll (Unix)

    + rt-signals (Linux 2.4+)

    + epoll (Linux 2.6)

    - /dev/poll (Solaris)

    - kqueue (FreeBSD)

Network handler:

    + sendfile

Features:

    + IPv6 support

    + zlib support

    + bzip2 support

    + crypt support

    + SSL Support

    + PCRE support

    - mySQL support

    - LDAP support

    - memcached support

    + FAM support

    - LUA support

    - xml support

    - SQLite support

    + GDBM support

6.查看Squid的编译参数

[root@WEB01 ~]# /usr/local/squid/sbin/squid -v

--prefix=/usr/local/squid' '--disable-dependency-tracking' '--enable-dlmalloc' '--enable-gnuregex' '--disable-carp' '--enable-async-io=240' '--with-pthreads' '--enable-storeio=ufs,aufs,diskd,null' '--disable-wccp' '--disable-wccpv2' '--enable-kill-parent-hack' '--enable-cachemgr-hostname=localhost' '--enable-default-err-language=Simplify_Chinese' '--with-build-environment=POSIX_V6_ILP32_OFFBIG' '--with-maxfd=65535' '--with-aio' '--disable-poll' '--enable-epoll' '--enable-linux-netfilter' '--enable-large-cache-files' '--disable-ident-lookups' '--enable-default-hostsfile=/etc/hosts' '--with-dl' '--with-large-files' '--enable-removal-policies=heap,lru' '--enable-delay-pools' '--enable-snmp' '--disable-internal-dns'

本文转自 sfzhang 51CTO博客,原文链接:http://blog.51cto.com/sfzhang88/863174,如需转载请自行联系原作者