如何查看Nginx,Apache,lighttpd,Mysql和Php的編譯參數

來源:互聯網
上載者:User

查看一些常見服務的在編譯安裝時的參數:

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'"

更多精彩內容:http://www.bianceng.cnhttp://www.bianceng.cn/Servers/web/

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'

本文出自 “樸實的追夢者” 部落格,請務必保留此出處http://sfzhang88.blog.51cto.com/4995876/863174

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.