如何查看已经安装的nginx、apache、mysql和php的编译参数

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
原文地址:https://www.cnblogs.com/joshua317/p/6753244.html