查看Linux中lanmp的各軟件編譯參數 如何查看已經安裝的nginx、apache、mysql和php的編譯參數

轉載 如何查看已經安裝的nginx、apache、mysql和php的編譯參數

 

Mysql查看mysql編譯參數php

Mysql5.4及以前版本查看編譯安裝參數,進入到mysql安裝目錄的bin下面html

$ cat /usr/local/mysql/bin/mysqlbug | grep configuremysql


Mysql5.5及以上版本查看編譯安裝參數,進入到mysql安裝目錄的docs下面nginx

$ /usr/local/mysql56/docs
$ cat INFO_BIN
#須要注意的是,這裏的參數的書寫格式並非在執行cmake命令時參數的標準格式,使用的時候要去掉:BOOL或PATH:等字符

查看mysql版本sql

$ /usr/local/mysql/bin/mysql -V

Apache查看apache編譯參數apache

$ cat /usr/local/apache/build/config.nice

Nginx查看nginx版本post

$ /usr/local/nginx/sbin/nginx -V

php查看php編譯參數ui

$ /usr/local/php/bin/php -i | grep configure

查看php版本url

$ /usr/local/php/bin/php -vspa

 

一、nginx編譯參數:

nginx -V(大寫)
#注意:需保證nginx在環境變量中,或者使用這樣的形式:/user/local/nginx/sbin/nginx -V

二、apache編譯參數

cat your_apache_dir/build/config.nice

三、php編譯參數:

php -i |grep configure
#或者 /user/local/php/bin/php -i |grep configure

四、mysql編譯參數:

cat /user/local/mysql/bin/mysqlbug |grep configure
相關文章
相關標籤/搜索