查看Linux中lanmp的各软件编译参数 转载 如何查看已经安装的nginx、apache、mysql和php的编译参数

查看Linux中lanmp的各软件编译参数
转载 如何查看已经安装的nginx、apache、mysql和php的编译参数

 

Mysql查看mysql编译参数

Mysql5.4及之前版本查看编译安装参数,进入到mysql安装目录的bin下面

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


Mysql5.5及以上版本查看编译安装参数,进入到mysql安装目录的docs下面

$ /usr/local/mysql56/docs
$ cat INFO_BIN
#需要注意的是,这里的参数的书写格式并不是在执行cmake命令时参数的标准格式,使用的时候要去掉:BOOL或PATH:等字符

查看mysql版本

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

Apache查看apache编译参数

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

Nginx查看nginx版本

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

php查看php编译参数

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

查看php版本

$ /usr/local/php/bin/php -v

1、nginx编译参数:

nginx -V(大写)
#注意:需保证nginx在环境变量中,或者使用这样的形式:/user/local/nginx/sbin/nginx -V

2、apache编译参数

cat your_apache_dir/build/config.nice

3、php编译参数:

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

4、mysql编译参数:

cat /user/local/mysql/bin/mysqlbug |grep configure

1、nginx编译参数:

nginx -V(大写)
#注意:需保证nginx在环境变量中,或者使用这样的形式:/user/local/nginx/sbin/nginx -V

2、apache编译参数

cat your_apache_dir/build/config.nice

3、php编译参数:

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

4、mysql编译参数:

cat /user/local/mysql/bin/mysqlbug |grep configure