linux下查看nginx、apache、mysql、php的编译参数
在linux平台下的应用,最流行的莫过于nginx、apache、mysql、php几个。而这几个常用的应用,在手工编译完以后,在其他一些情况下(如:新增模块),往往想要查看当初都使用了那些参数进行的编译。这时候就可以利用以下方法查看。
1、nginx
1[root@361way ~]# /App/nginx/sbin/nginx -V
2nginx: nginx version: nginx/1.2.6
3nginx: TLS SNI support disabled
4nginx: configure arguments: --prefix=/App/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module
2、apache
1[root@361way build]# cat config.nice
2#! /bin/sh
3#
4# Created by configure
5"./configure"
6"--prefix=/usr/local/httpd"
7"--with-apr=/usr/local/apr"
8"--with-apr-util=/usr/local/apr-util"
9"--with-pcre"
10"--with-mpm=event"
11"--enable-rewrite"
12"--enable-proxy"
13"--with-z"
14"--enable-so"
15"$@"
3、mysql
1[root@361way build]#cat "/usr/local/mysql/bin/mysqlbug"|grep configure
2# This is set by configure
3CONFIGURE_LINE="./configure --prefix=/usr/local/mysql --localstatedir=/var/lib/mysql --with-comment=Source --with-server-suffix=-H863 --with-mysqld-user=mysql --without-debug --with-big-tables --with-charset=gbk --with-collation=gbk_chinese_ci --with-extra-charsets=all --with-pthread --enable-static --enable-thread-safe-client --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --enable-assembler --without-isam --without-innodb --without-ndb-debug"
4、php
1/usr/local/php/bin/php -i |grep configure
2Configure Command => ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-libxml-dir=/usr/local/libxml2/bin --with-gd=/usr/local/gd2 --with-jpeg-dir --with-png-dir --with-bz2 --with-xmlrpc --with-freetype-dir --with-zlib-dir
捐赠本站(Donate)
如您感觉文章有用,可扫码捐赠本站!(If the article useful, you can scan the QR code to donate))
- Author: shisekong
- Link: https://blog.361way.com/lamp-compiler-arguments/2245.html
- License: This work is under a 知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议. Kindly fulfill the requirements of the aforementioned License when adapting or creating a derivative of this work.