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

本文涉及的产品
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
云数据库 RDS MySQL,集群系列 2核4GB
推荐场景:
搭建个人博客
云数据库 RDS MySQL,高可用系列 2核4GB
简介:

   查看一些常见服务的在编译安装时的参数: 
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,如需转载请自行联系原作者

相关实践学习
如何在云端创建MySQL数据库
开始实验后,系统会自动创建一台自建MySQL的 源数据库 ECS 实例和一台 目标数据库 RDS。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
相关文章
|
2天前
|
存储 SQL 关系型数据库
PHP与MySQL交互的奥秘
【8月更文挑战第29天】在编程的世界里,PHP和MySQL就像是一对默契的舞伴,共同演绎着数据的交响曲。本文将带你探索它们之间的互动,从连接数据库到执行查询,再到处理结果,每一步都充满了节奏与和谐。我们将一起走进这段代码的旅程,感受数据流动的魅力。
|
8天前
|
Ubuntu 应用服务中间件 Linux
在Linux中,如何配置Web服务器(如Apache或Nginx)?
在Linux中,如何配置Web服务器(如Apache或Nginx)?
|
16天前
|
Web App开发 应用服务中间件 网络安全
如何在 Apache 和 Nginx 上配置 OCSP Stapling
如何在 Apache 和 Nginx 上配置 OCSP Stapling
34 8
|
8天前
|
应用服务中间件 Linux 网络安全
在Linux中,如何配置Apache或Nginx Web服务器?
在Linux中,如何配置Apache或Nginx Web服务器?
|
10天前
|
Ubuntu 应用服务中间件 Linux
在Linux中,如何查看Apache或Nginx服务的状态?
在Linux中,如何查看Apache或Nginx服务的状态?
|
16天前
|
Ubuntu 应用服务中间件 网络安全
如何使用 Apache 和 Nginx 创建临时和永久重定向
如何使用 Apache 和 Nginx 创建临时和永久重定向
32 0
|
17天前
|
应用服务中间件 Apache PHP
Apache vs Nginx: 实际考虑因素
Apache vs Nginx: 实际考虑因素
11 0
|
2月前
|
数据库
基于PHP+MYSQL开发制作的趣味测试网站源码
基于PHP+MYSQL开发制作的趣味测试网站源码。可在后台提前设置好缘分, 自己手动在数据库里修改数据,数据库里有就会优先查询数据库的信息, 没设置的话第一次查询缘分都是非常好的 95-99,第二次查就比较差 , 所以如果要你女朋友查询你的名字觉得很好 那就得是她第一反应是查和你的缘分, 如果查的是别人,那不好意思,第二个可能是你。
45 3
|
24天前
|
安全 应用服务中间件 Linux
linux编译安装nginx
linux编译安装nginx

热门文章

最新文章

推荐镜像

更多
下一篇
云函数