如何查看已经安装的nginx、apache、mysql和php的编译参数
1、nginx编译参数:
$ nginx -V
#注意:需保证nginx在环境变量中,或者使用绝对路径的形式:your_nginx_dir/sbin/nginx -V
2、apache编译参数
$ cat your_apache_dir/build/config.nice
3、php编译参数:
$ php -i |grep configure
ps /usr/local/php{your_php_dir}/bin/php -v 只能查看版本信息.
#或者 your_php_dir/bin/php -i |grep configure
#或者使用phpinfo函数输出,在第三行Configure Command查看
4、mysql编译参数:
$ cat your_mysql_dir/bin/mysqlbug |grep configure
lnmp默认为 /usr/local/softwarename