How to view compilation parameters for Nginx,apache,lighttpd,mysql and PHP

Source: Internet
Author: User
Tags config curl epoll gettext openssl linux

View the parameters of some common services at compile-time installation:

1.Nginx compile-time parameters for installation

[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 compile-time parameters for installation

[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 compile-time parameters for installation

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

# This are 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 '

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/web/

4.apache compile-time parameters for installation

[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 Compile parameters at installation

[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. View Squid's compilation parameters

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

This article from the "Simple Dreamer" blog, please be sure to retain this source http://sfzhang88.blog.51cto.com/4995876/863174

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.