ホームページ  >  記事  >  運用・保守  >  Linux で nginx、apache、mysql、php のコンパイル パラメーターを確認する方法

Linux で nginx、apache、mysql、php のコンパイル パラメーターを確認する方法

WBOY
WBOY転載
2023-05-18 14:16:061009ブラウズ

サーバー ソフトウェアのコンパイル パラメーターを簡単に確認します:
1. nginx コンパイル パラメーター:
your_nginx_dir/sbin/nginx -v
2. apache コンパイル パラメーター:
cat your_apache_dir /build/config.nice
3. PHP コンパイル パラメータ:
your_php_dir/bin/php -i |grep configure
4. MySQL コンパイル パラメータ:
cat your_mysql_dir/bin/mysqlbug |grep configure

以下は完全な実践的な例です:

nginx のコンパイル パラメーターを表示します:

コードをコピーします。コードは次のとおりです。以下:

[root@www ~]# /usr/local/nginx/sbin/nginx -v
nginx: nginx バージョン: nginx/1.0.8
nginx: gcc 4.3 によってビルドされました。 2 (debian 4.3.2 -1.1)
nginx: 引数の設定: –user=www-data –group=www-data –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_gzip_static_module

apache のコンパイル パラメーターを表示して取得します:

コードをコピーします。 コードは次のとおりです:

[root@www ~]# cat /usr/local/apache2/build/config .nice
#! /bin /sh

## によって作成されました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" \

mysql のコンパイル パラメータを表示します:

コードをコピーしますコードは次のとおりです。

[root @www ~]# grep configure /usr/local/mysql/bin/mysqlbug
# これは、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'"

PHP のコンパイル パラメータを参照してください:

コードをコピーします。は次のとおりです:

[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'

以上がLinux で nginx、apache、mysql、php のコンパイル パラメーターを確認する方法の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

声明:
この記事はyisu.comで複製されています。侵害がある場合は、admin@php.cn までご連絡ください。