日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

查看mysql,apache,php,nginx编译参数

發布時間:2025/5/22 数据库 146 豆豆
生活随笔 收集整理的這篇文章主要介紹了 查看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

?

1)查看web服務的編譯參數
? a.查看nginx的編譯參數:
?? /home/oldboy/run/nginx/sbin/nginx -V
?范例1:

  • [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?
  • ? 提示:/home/oldboy/run/為普通用戶起的nginx服務命令路徑?
    b.查看apache的編譯參數:
    ??? cat /home/oldboy/run/apache/build/config.nice
    ?范例2:

  • [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"?\ ?
  • "$@"?
  • ? 提示:/home/oldboy/run/為普通用戶起的apache服務命令路徑

    2)查看MySQL數據庫的編譯參數:
    grep CONFIGURE_LINE /app/mysql/bin/mysqlbug
    ?提示:還發現很多人先cat,在grep,很不專業,應杜絕。
    ?范例3:

  • [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"`?
  • ? 提示:/app為mysql服務安裝路徑
    3)查看php編譯參數:
    /app/php/bin/php -i|grep configure
    ?范例4:

  • [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'?
  • ? 提示:/app為php服務安裝路徑


    本文來源?http://ohgenlong16300.blog.51cto.com/499130/846075

    ?

    ?

    總結

    以上是生活随笔為你收集整理的查看mysql,apache,php,nginx编译参数的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。