查看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 自定义元素和属性
- 下一篇: 【逆天的算法】这几首宋词,你能看出来是出