Linux下如何查看Nginx Apache MySQL PHP 的编译参数?

赞赏 2016-07-18

Linux系统 Nginx Apache MySQL PHP 编译参数查看命令汇总


查看 nginx 编译参数


  1. root@ubuntu:~# nginx -V
  2. nginx: nginx version: nginx/1.0.8
  3. nginx: built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
  4. nginx: TLS SNI support enabled
  5. nginx: configure arguments: --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-http_stub_status_module --with-http_flv_module --with-http_ssl_module --with-http_dav_module --with-http_gzip_static_module --with-http_realip_module --with-http_sub_module --add-module=../substitutions4nginx-read-only --add-module=../ngx_cache_purge-1.4 --add-module=../ngx_http_upstream_keepalive-d9ac9ad67f45 --add-module=../agentzh-memc-nginx-module-5b0504b --add-module=../agentzh-srcache-nginx-module-10d968e

查看 apache 编译参数


  1. root@ubuntu:~# cat /usr/local/apache2/build/config.nice
  2. #! /bin/sh
  3. #
  4. # Created by configure
  5. "./configure" \
  6. "--prefix=/usr/local/apache2" \
  7. "--with-included-apr" \
  8. "--enable-so" \
  9. "--enable-deflate=shared" \
  10. "--enable-expires=shared" \
  11. "--enable-rewrite=shared" \
  12. "--enable-static-support" \
  13. "--disable-userdir" \
  14. "$@"

查看 mysql 编译参数


  1. root@ubuntu:~# find /usr -name mysqlbug
  2. /usr/bin/mysqlbug
  3. root@ubuntu:~# cat "/usr/bin/mysqlbug"|grep configure
  4. # This is set by configure
  5. CONFIGURE_LINE="../configure  '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--exec-prefix=/usr' '--libexecdir=/usr/sbin' '--datadir=/usr/share' '--localstatedir=/var/lib/mysql' '--includedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-server-suffix=-3ubuntu12.7' '--with-comment=(Ubuntu)' '--with-system-type=debian-linux-gnu' '--enable-shared' '--enable-static' '--enable-thread-safe-client' '--enable-assembler' '--enable-local-infile' '--with-pstack' '--with-fast-mutexes' '--with-big-tables' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' '--with-mysqld-user=mysql' '--with-libwrap' '--without-readline' '--with-ssl' '--without-docs' '--with-extra-charsets=all' '--with-plugins=max' '--without-ndbcluster' '--with-embedded-server' '--with-embedded-privilege-control' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CC=gcc' 'CFLAGS=-O3 -DBIG_JOINS=1  -fno-strict-aliasing' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXX=g++' 'CXXFLAGS=-O3 -DBIG_JOINS=1 -felide-constructors -fno-exceptions -fno-rtti  -fno-strict-aliasing'"

查看 php 编译参数


  1. root@ubuntu:~# php5-fpm -i|grep configure                                                                                          
  2. Configure Command =>  './configure'  '--prefix=/usr/local/php-5.3.3' '--with-config-file-path=/etc/php5' '--with-mcrypt' '--with-gettext' '--with-mysql' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-curl' '--with-freetype-dir' '--enable-gd-native-ttf' '--enable-mbstring' '--enable-sockets' '--enable-fpm' '--with-zlib' '--with-fpm-user=www-data' '--with-fpm-group=www-data' '--enable-xml' '--enable-bcmath' '--with-mhash'

登陆后阅读全文
阅读 1711 赞赏 0 有用 0 没用 0 收藏 0 分享

   



0 条留言

linux分享的头像

linux分享

每个软件都有确定的用途

相关文章

阿里云·业务运营团队内部的前端构建和工程化工具 Dawn开源

阿里云云盾扫描服务器的的IP段有哪些?

阿里云云盾扫描服务器的的IP段有哪些?

有料推荐

这世界欠我一个这样的老公!

高校学生模仿“世界名画”摆拍,可以说是戏精本精了

iPhone X 跌破发行价,苏宁200亿入股恒大 | 财经日日评

果然是高手!这次在日本,特朗普竹杠敲得不是一般狠

资深黄牛现身说法:iPhone X价格秒变不停,就像炒股一样

长一样的双胞胎也能识别?蚂蚁金服发布「眼纹识别」技术

苏联是怎么被阿富汗拖垮的?

美团或入局「分时租赁」共享汽车,王兴要大笔投入「泛出行」领域了? | 36氪独家

你或许被“一盘番茄炒蛋”刷屏了,但有人辛酸,有人质疑

iPhone X发售前夜,黄牛与苹果公司的不安

他的文章

我是如何执行 "rm -rf ~" 的

正态分布为什么常见?(财富的分布却不符合正态分布)

Linux下窗口管理器 xmonad 的使用教程

用披萨做比喻来解释 IaaS,PaaS,SaaS 的区别

如何制作CSR(证书私钥和证书请求文件)文件?

php RedisException with message read error on connection

Windows环境下ping丢包或不通时链路测试工具推荐

Linux下ping丢包或不通时链路测试工具推荐

链路测试结果分析说明及常见链路异常场景和测试报告

SSH 登录时出现如下错误:login: Module is unknown

手机扫一扫
分享文章