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

WBOY
リリース: 2023-05-14 22:22:04
転載
1779 人が閲覧しました

サーバー ソフトウェアのコンパイル パラメーターを簡単に確認します:
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 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
ログイン後にコピー

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

[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" \
ログイン後にコピー

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

のコンパイルパラメータを表示して取得します
[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'"
ログイン後にコピー

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 までご連絡ください。
最新の問題
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!