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

如何查看已经安装的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/sandshell/p/8596970.html