Linux下查看nginx apache mysql php的编译参数
php  /  管理员 发布于 7年前   128
快速查看服务器软件的编译参数:
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: 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 configure
CONFIGURE_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 configure
Configure 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'
122 在
学历:一种延缓就业设计,生活需求下的权衡之选中评论 工作几年后,报名考研了,到现在还没认真学习备考,迷茫中。作为一名北漂互联网打工人..123 在
Clash for Windows作者删库跑路了,github已404中评论 按理说只要你在国内,所有的流量进出都在监控范围内,不管你怎么隐藏也没用,想搞你分..原梓番博客 在
在Laravel框架中使用模型Model分表最简单的方法中评论 好久好久都没看友情链接申请了,今天刚看,已经添加。..博主 在
佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 @1111老铁这个不行了,可以看看近期评论的其他文章..1111 在
佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 网站不能打开,博主百忙中能否发个APP下载链接,佛跳墙或极光..
Copyright·© 2019 侯体宗版权所有·
粤ICP备20027696号