有时候nginx,mysq,php编译完了想看看编译参数可以用以下方法
nginx编译参数:
- /usr/local/nginx/sbin/nginx -V
- nginx version: nginx/1.0.15
- built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
- TLS SNI support enabled
- 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-ipv6
mysql编译参数:
- cat /usr/local/mysql/bin/mysqlbug | grep configure
- # This is set by configure
- CONFIGURE_LINE="./configure '--prefix=/usr/local/mysql' '--with-extra-charsets=complex' '--enable-assembler' '--with-mysqld-ldflags=-all-static' '--with-charset=utf8' '--enable-thread-safe-client' '--with-big-tables' '--with-readline' '--with-ssl' '--with-embedded-server' '--enable-local-infile' '--with-plugins=innobase'"
php编译参数:
- php -i | grep configure
- 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' '--with-freetype-dir' '--with-jpeg-dir' '--with-png-dir' '--with-zlib' '--with-libxml-dir=/usr' '--enable-xml' '--disable-rpath' '--enable-discard-path' '--enable-magic-quotes' '--enable-safe-mode' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-inline-optimization' '--with-curl' '--with-curlwrappers' '--enable-mbregex' '--enable-fastcgi' '--enable-fpm' '--enable-force-cgi-redirect' '--enable-mbstring' '--with-mcrypt' '--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-openssl' '--with-mhash' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc' '--enable-zip' '--enable-soap' '--without-pear' '--with-gettext' '--with-mime-magic'
另写上查看apache的编译参数:
- cat /usr/local/apache/build/config.nice
转载于:https://blog.51cto.com/cclinux/1004546