Linux中查看软件编译参数

作者: jaclon 分类: Linux 发布时间: 2014-01-09 15:39 ė 6没有评论

linux中怎么查看已经编译安装的软件的编译参数,下面是一些web服务常用软件的查看方法:

nginx

[root@localhost logs]# /usr/local/nginx/sbin/nginx -V
nginx version: nginx/1.4.4
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-50)
configure arguments: --prefix=/usr/local/nginx \
--with-openssl=/home/software/openssl-1.0.1e \
--with-pcre=/home/software/pcre-8.34 \
--with-http_stub_status_module \
--with-http_gzip_static_module \
--with-zlib=/home/software/zlib-1.2.8

apache

[root@localhost logs]#cat /usr/local/apache/build/config.nice
#! /bin/sh
#
# Created by configure

"./configure" \
"--prefix=/usr/local/apache/" \
"--enable-mods-shared=most" \
"--enable-modules=all" \
"--enable-ssl" \
"--enable-proxy" \
"--enable-proxy-http" \
"$@"

php

[root@localhost logs]# /usr/local/php/bin/php -i|grep configure
Configure Command =>  './configure'  '--prefix=/usr/local/php' 
'--with-apxs2=/usr/local/apache/bin/apxs' 
'--with-mysql=/usr/local/mysql/' 
'--with-mysqli=/usr/local/mysql/bin/mysql_config' 
'--with-zlib' '--enable-pdo' 
'--with-mysql=mysqlnd' 
'--with-pdo-mysql=mysqlnd' 
'--with-curl=shared' 
'--with-openssl=shared' 
'--with-gd' '--with-jpeg-dir' '--with-png-dir' 
'--with-zlib-dir' '--with-ttf' 
'--with-freetype-dir' '--enable-gd-native-ttf' 
'--enable-sockets=shared' '--enable-xml=shared' 
'--with-xsl=shared' '--enable-soap=shared' 
'--enable-zip=shared' '--enable-mbstring' 
'--enable-pcntl' '--with-bz2'
'--enable-ftp' '--enable-calendar'

本文出自 肥蕉博客@IT技术,热门话题,生活随笔,美图欣赏,转载时请注明出处及相应链接。

本文永久链接: http://www.bananawolf.com/html/2014/01/973.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注

*

Ɣ回顶部