查看Apache,Nginx,Mysql,PHP的编译参数(Linux环境)

原创 小新  2011-05-05 15:56:45  阅读 944 次 评论 0 条
查看Apache,Nginx,Mysql,PHP的编译参数,具体如下:

查看apache编译参数:
# cat /usr/local/apache2/build/config.nice

#! /bin/sh
#
# Created by configure

“./configure” \
“–prefix=/usr/local/apache2″ \
“–with-included-apr” \
“–enable-so” \
“–enable-deflate=shared” \
“–enable-expires=shared” \
“–enable-rewrite=shared” \
“–enable-static-support” \
“–disable-userdir” \
“$@”



查看nginx编译参数:
# /usr/local/nginx/sbin/nginx -V

nginx: nginx version: nginx/0.9.6
nginx: configure arguments: –user=www –group=www –prefix=/usr/local/nginx –with-http_stub_status_module –with-openssl=/usr/lib –with-sha1=/usr/lib

查看mysql编译参数:
# cat /usr/local/mysql/bin/mysqlbug|grep configure
# This is set by configure
CONFIGURE_LINE=”./configure ‘–prefix=/usr/local/mysql’ ‘–localstatedir=/data/mysql/data’ ‘–with-comment=Source’ ‘–with-server-suffix=-LinuxTone’ ‘–with-mysqld-user=mysql’ ‘–without-debug’ ‘–with-big-tables’ ‘–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’”

查看php编译参数:
# /usr/local/php/bin/php -i |grep configure
Configure 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′ ‘–with-gd’ ‘–with-jpeg-dir’ ‘–with-png-dir’ ‘–with-bz2′ ‘–with-freetype-dir’ ‘–with-iconv-dir’ ‘–with-zlib-dir


上面的内容是在互联网上找到的,如果你机器上还有之前所编译的文件存在的话,可以直接看编译时产生的log文件就行了。
本文地址:https://mxlog.com/fenxiang/1379.html
版权声明:本文为原创文章,版权归 小新 所有,欢迎分享本文,转载请保留出处!

评论已关闭!