>  기사  >  운영 및 유지보수  >  Linux에서 nginx, apache, mysql, php의 컴파일 매개변수를 확인하는 방법

Linux에서 nginx, apache, mysql, php의 컴파일 매개변수를 확인하는 방법

WBOY
WBOY앞으로
2023-05-18 14:16:061010검색

서버 소프트웨어의 컴파일 매개변수를 빠르게 확인하세요:
1. nginx 컴파일 매개변수:
your_nginx_dir/sbin/nginx -v
2 apache 컴파일 매개변수:
cat your_apache_dir/build/config.nice
3. :
your_php_dir/bin/php -i |grepconfigure
4.mysql 컴파일 매개변수:
cat your_mysql_dir/bin/mysqlbug |grepconfigure

다음은 완전한 실제 예입니다.

nginx 컴파일 매개변수 보기:

코드 복사 코드는 다음과 같습니다.

[root@www ~]# /usr/local/nginx/sbin/nginx -v
nginx: nginx 버전: nginx/1.0.8
nginx: build by 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"
"–prefix=/usr/local/apache2″
"–enable-so"
"–enable-modules=all"
"–enable-mods-shared=all"
"– 활성화-레이아웃=apache"
"– 활성화-ssl=정적"
"-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 ~]# grepconfigure /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 |grepconfigure
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 중국어 웹사이트의 기타 관련 기사를 참조하세요!

성명:
이 기사는 yisu.com에서 복제됩니다. 침해가 있는 경우 admin@php.cn으로 문의하시기 바랍니다. 삭제