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