How to check the compilation parameters of nginx,apache,mysql,php under Linux
This article mainly introduces the relevant knowledge of "how to view the compilation parameters of nginx,apache,mysql,php under Linux". The editor shows you the operation process through an actual case. The method of operation is simple and fast, and it is practical. I hope that this article "how to view the compilation parameters of nginx,apache,mysql,php under Linux" can help you solve the problem.
Quickly view the compilation parameters of the server software:
1. Nginx compilation parameters:
Your_nginx_dir/sbin/nginx-v
2. Apache compilation parameters:
Cat your_apache_dir/build/config.nice
3. Php compilation parameters:
Your_php_dir/bin/php-I | grep configure
4. Mysql compilation parameters:
Cat your_mysql_dir/bin/mysqlbug | grep configure
The following is a complete practical example:
Check the compilation parameters for getting nginx:
The copy code is as follows:
[root@www] # / usr/local/nginx/sbin/nginx-v
Nginx: nginx version: nginx/1.0.8
Nginx: built by gcc 4.3.2 (debian 4.3.2-1.1)
Nginx: configure arguments:-user=www-data-group=www-data-prefix=/usr/local/nginx-with-http_stub_status_module-with-http_gzip_static_module
Check the compilation parameters for getting apache:
The copy code is as follows:
[root@www ~] # cat / usr/local/apache2/build/config.nice
#! / bin/sh
#
# created by configure
". / configure"\
"- prefix=/usr/local/apache2"\
"- enable-so"\
"- enable-modules=all"\
"- enable-mods-shared=all"\
"- enable-layout=apache"\
"- enable-ssl=static"\
"- with-ssl=/usr/local/openssl"\
"- enable-rewrite"\
"- enable-suexec"\
"- with-suexec-logfile=/www/logs/suexec.log"\
"- with-suexec-uidmin=500"\
"- with-suexec-gidmin=100"\
"- with-suexec-caller=nobody"\
"- with-suexec-docroot=/www"\
Check the compilation parameters for getting mysql:
The copy code is as follows:
[root@www ~] # grep configure / usr/local/mysql/bin/mysqlbug
# this is set by configure
Configure_line= ". / configure'- prefix=/usr/local/mysql4''- sysconfdir=/etc''- enable-assembler''- without-debug''- with-client-ldflags=-all-static''- with-mysqld-ldflags=-all-static''- localstatedir=/www/mysql''- with-big-tables''- with-low-memory''- with-extra-charsets=all''- enable-thread-safe-client''- with-pthread'' -with-unix-socket-path=/tmp/mysql.sock' "
See getting the compilation parameters of php:
The copy code is as follows:
[root@www ~] # / usr/local/php5/bin/php-I | grep configure
Configure command = >'. / configure''- prefix=/usr/local/php5''- enable-exif''- enable-mbstring''- with-iconv''- with-curl=/usr''- with-gdbm''- with-gettext''- enable-calendar''- enable-magic-quotes''- enable-wddx''- enable-ftp''- enable-inline-optimization''- with-gd=/usr/local''- with-zlib' '- enable-gd-native-ttf''-with-t1lib=/usr/local''- with-zlib-dir=/usr''- with-ttf''- with-freetype-dir=/usr''- with-gd''- with-png-dir=/usr''- with-jpeg-dir=/usr''- with-mysql=/usr/local/mysql4''- enable-force-cgi-redirect''- with-apxs2=/usr/local/apache2/bin/apxs ''-with-pdo-mysql=/usr/local/mysql4''- enable-sockets''- with-openssl=/usr/local/openssl'
This is the end of the content about "how to check the compilation parameters of nginx,apache,mysql,php under Linux". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.