科技常识:Linux下查看nginx apache mysql php的编译参数

2021-03-30 03:37:40
导读 今天小编跟大家讲解下有关科技常识:Linux下查看nginx apache mysql php的编译参数,相信小伙伴们对这个话题应该也很关注吧,小编也收集

今天小编跟大家讲解下有关科技常识:Linux下查看nginx apache mysql php的编译参数,相信小伙伴们对这个话题应该也很关注吧,小编也收集到了有关科技常识:Linux下查看nginx apache mysql php的编译参数的相关资料,希望小伙伴会喜欢也能够帮助大家。

快速查看服务器软件的编译参数: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 -Vnginx: nginx version: nginx/1.0.8nginx: built by gcc 4.3.2 (Debian 4.3.2-1.1)nginx: configure arguments: Cuser=www-data Cgroup=www-data Cprefix=/usr/local/nginx Cwith-http_stub_status_module Cwith-http_gzip_static_module

查看获取apache的编译参数:复制代码 代码如下:[root@www ~]# cat /usr/local/apache2/build/config.nice#! /bin/sh## Created by configure"./configure"\"Cprefix=/usr/local/apache2″ \"Cenable-so"\"Cenable-modules=all"\"Cenable-mods-shared=all"\"Cenable-layout=Apache"\"Cenable-ssl=static"\"Cwith-ssl=/usr/local/openssl"\"Cenable-rewrite"\"Cenable-suexec"\"Cwith-suexec-logfile=/www/logs/suexec.log"\"Cwith-suexec-uidmin=500″ \"Cwith-suexec-gidmin=100″ \"Cwith-suexec-caller=nobody"\"Cwith-suexec-docroot=/www"\

查看获取mysql的编译参数:复制代码 代码如下:[root@www ~]# grep configure /usr/local/mysql/bin/mysqlbug# This is set by configureCONFIGURE_LINE="./configure 'Cprefix=/usr/local/mysql4′ 'Csysconfdir=/etc' 'Cenable-assembler' 'Cwithout-debug' 'Cwith-client-ldflags=-all-static' 'Cwith-mysqld-ldflags=-all-static' 'Clocalstatedir=/www/mysql' 'Cwith-big-tables' 'Cwith-low-memory' 'Cwith-extra-charsets=all' 'Cenable-thread-safe-client' 'Cwith-pthread' 'Cwith-unix-socket-path=/tmp/mysql.sock'"

参看获取php的编译参数:复制代码 代码如下:[root@www ~]# /usr/local/php5/bin/php -i |grep configureConfigure Command => './configure' 'Cprefix=/usr/local/php5′ 'Cenable-exif' 'Cenable-mbstring' 'Cwith-iconv' 'Cwith-curl=/usr' 'Cwith-gdbm' 'Cwith-gettext' 'Cenable-calendar' 'Cenable-magic-quotes' 'Cenable-wddx' 'Cenable-ftp' 'Cenable-inline-optimization' 'Cwith-gd=/usr/local' 'Cwith-zlib' 'Cenable-gd-native-ttf' 'Cwith-t1lib=/usr/local' 'Cwith-zlib-dir=/usr' 'Cwith-ttf' 'Cwith-freetype-dir=/usr' 'Cwith-gd' 'Cwith-png-dir=/usr' 'Cwith-jpeg-dir=/usr' 'Cwith-mysql=/usr/local/mysql4′ 'Cenable-force-cgi-redirect' 'Cwith-apxs2=/usr/local/apache2/bin/apxs' 'Cwith-pdo-mysql=/usr/local/mysql4′ 'Cenable-sockets' 'Cwith-openssl=/usr/local/openssl'

来源:爱蒂网

免责声明:本文由用户上传,如有侵权请联系删除!

猜你喜欢

最新文章