如何查看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'"

更多精彩内容: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

时间: 2024-08-31 20:51:48

如何查看Nginx,Apache,lighttpd,Mysql和Php的编译参数的相关文章

linux下查看nginx、apache、mysql、php的编译参数

下文我们一起来看一个linux下查看nginx.apache.mysql.php的编译参数例子,希望此例子对各位有帮助. 查看nginx.apache.mysql.php参数我们可以用到 /App/nginx/sbin/nginx -V 查看nginx参数 # cat config.nice 查看apache参数 #cat "/usr/local/mysql/bin/mysqlbug"|grep configure 查看mysql参数 /usr/local/php/bin/php -i

Linux下查看nginx apache mysql php的编译参数_Linux

快速查看服务器软件的编译参数:1.nginx编译参数: your_nginx_dir/sbin/nginx -v 2.apache编译参数: cat your_apache_dir/build/config.nice 3.php编译参数: your_php_dir/bin/php -i |grep configure 4.mysql编译参数: cat your_mysql_dir/bin/mysqlbug |grep configure 以下是完整的实操例子: 查看获取nginx的编译参数: 复

查看nginx,apache,mysql,php的编译参数

nginx编译参数: /usr/local/nginx/sbin/nginx -V apache编译参数: cat /usr/local/apache2/build/config.nice php编译参数: /usr/local/php/bin/php -i |grep configure mysql编译参数: cat "/usr/local/mysql/bin/mysqlbug"|grep configure

Apache、Nginx、Lighttpd性能評比

今天看到了一篇對於目前三大知名 Open Source HTTP Server (Apache.Nginx.Lighttpd) 做評比的文章,文章內容寫的非常詳盡,也提出各種伺服器適合的建議用途. Apache  許可協議:Apache License 2.0  官網:http://www.apache.org Nginx  許可協議:BSD-like  官網:http://www.nginx.net Lighttpd  許可協議:BSD License  官網:http://www.light

如何在Ubuntu上安装Apache,MySQL,PHP,Nginx,HAProxy,以及如何在docker上安装LAMP

如何在Ubuntu上安装Apache,MySQL,PHP,Nginx,HAProxy,以及如何在docker上安装LAMP   在Ubuntu上安装LAMP: https://help.ubuntu.com/community/ApacheMySQLPHPhttps://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntuhttp://www.make

nginx+apache+mysql+php+memcached+squid集群web环境 (1/6)

 客户端 | ===> |负载均衡器| ===> |反向代理/缓存| ===> |web服务器| ===> |数据库教程服务器| -------- ---------- ------------- --------- ------------ nginx squid apache,php mysql教程 eaccelerator/memcache准备工作: 引用服务器: intel(r) xeon(tm) cpu 3.00ghz * 2, 2gb mem, scisc 硬盘 操作系

在 Apache、NGINX 和 Lighttpd 上启用 HTTP 公钥固定扩展(HPKP)

在 Apache.NGINX 和 Lighttpd 上启用 HTTP 公钥固定扩展(HPKP) 编者按:前段时间,Google 报告说 CNNIC 签发的一个中级 CA 签发了一个伪造的 Google 证书,从而导致 Google 和 Mozilla 在其产品中取消了对 CNNIC 后继签发的证书信任. 本文就来讲述一下,这种伪造证书是如何被 Google 发现的,其技术机制是什么?如何在网站服务器上实现伪造证书防御和报告机制. 公钥固定(Public Key Pinning)是指一个证书链中必

CentOS 7 下安装 LEMP 服务(nginx、MariaDB/MySQL 和 php)

原文 CentOS 7 下安装 LEMP 服务(nginx.MariaDB/MySQL 和 php) LEMP 组合包是一款日益流行的网站服务组合软件包,在许多生产环境中的核心网站服务上起着强有力的作用.正如其名称所暗示的, LEMP 包是由 Linux.nginx.MariaDB/MySQL 和 PHP 组成的.在传统的 LAMP 包中使用的 Apache HTTP 协议服务器性能低下而且难于大规模集群,相比来说 nginx 的高性能及轻量级等特性,正是其的替代方案. MariaDB 是一款社

CentOS 下安装 LEMP 服务(nginx、MariaDB/MySQL 和 php)

CentOS 下安装 LEMP 服务(nginx.MariaDB/MySQL 和 php) LEMP 组合包是一款日益流行的网站服务组合软件包,在许多生产环境中的核心网站服务上起着强有力的作用.正如其名称所暗示的, LEMP 包是由 Linux.nginx.MariaDB/MySQL 和 PHP 组成的.在传统的 LAMP 包中使用的 Apache HTTP 协议服务器性能低下而且难于大规模集群,相比来说 nginx 的高性能及轻量级等特性,正是其的替代方案. MariaDB 是一款社区支持驱动