查看mysql,apache,php,nginx编译参数
生活随笔
收集整理的这篇文章主要介绍了
查看mysql,apache,php,nginx编译参数
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
查看nginx编译参数:
#/usr/local/nginx/sbin/nginx -V 查看mysql编译参数:
cat /usr/local/mysql/bin/mysqlbug | grep CONFIGURE_LINE
查看apache编译参数:
cat $apachehome$/build/config.nice
查看php编译参数:
$PHP$/bin/php -i | grep configure[root@VM-001 ~]# /home/oldboy/run/nginx/sbin/nginx -V nginx version: nginx/0.8.50 built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48) configure arguments: --prefix=/app/nginx [root@VM-002 ~]# cat /home/oldboy/run/apache/build/config.nice #! /bin/sh # # Created by configure "./configure" \ "--prefix=/app/apache2.2.9" \ "--enable-deflate" \ "--enable-headers" \ "--enable-modules=so" \ "--enable-so" \ "--with-mpm=worker" \ "--enable-rewrite" \ "--enable-cgi" \ "$@" [root@VM-001~]# grep CONFIGURE_LINE /app/mysql/bin/mysqlbug CONFIGURE_LINE="./configure '--prefix=/app/mysql/' '--enable-assembler' '--with-extra-charsets=complex' '--enable-thread-safe-client' '--with-big-tables' '--with-readline' '--with-ssl' '--with-embedded-server' '--enable-local-infile' '--with-plugins=partition,innobase' '--with-plugin-PLUGIN'" `test -n "$CONFIGURE_LINE" && echo "Configure command: $CONFIGURE_LINE"` [root@VM-001 ~]# /app/php/bin/php -i|grep configure Configure Command => './configure' '--prefix=/app/php' '--with-apxs2=/app/apache/bin/apxs' '--with-mysql=shared,/app/mysql' '--with-ttf=shared' '--with-freetype-dir' '--with-gd' '--with-zlib' '--with-jpeg-dir' '--with-png-dir' '--with-iconv=/app/libiconv' '--enable-short-tags' '--enable-sockets' '--enable-zend-multibyte' '--enable-soap' '--with-openssl' '--enable-mbstring' '--enable-static' '--enable-gd-native-ttf' '--with-curl' '--with-xsl' '--enable-ftp' '--with-libxml-dir'
#/usr/local/nginx/sbin/nginx -V 查看mysql编译参数:
cat /usr/local/mysql/bin/mysqlbug | grep CONFIGURE_LINE
查看apache编译参数:
cat $apachehome$/build/config.nice
查看php编译参数:
$PHP$/bin/php -i | grep configure
1)查看web服务的编译参数
a.查看nginx的编译参数:
/home/oldboy/run/nginx/sbin/nginx -V
范例1:
提示:/home/oldboy/run/为普通用户起的nginx服务命令路径
b.查看apache的编译参数:
cat /home/oldboy/run/apache/build/config.nice
范例2:
提示:/home/oldboy/run/为普通用户起的apache服务命令路径
2)查看MySQL数据库的编译参数:
grep CONFIGURE_LINE /app/mysql/bin/mysqlbug
提示:还发现很多人先cat,在grep,很不专业,应杜绝。
范例3:
提示:/app为mysql服务安装路径
3)查看php编译参数:
/app/php/bin/php -i|grep configure
范例4:
提示:/app为php服务安装路径
本文来源 http://ohgenlong16300.blog.51cto.com/499130/846075
总结
以上是生活随笔为你收集整理的查看mysql,apache,php,nginx编译参数的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: angularJS 自定义元素和属性
- 下一篇: 【逆天的算法】这几首宋词,你能看出来是出