LAMP编译参数查看
Linux下查看Nginx、Napache、MySQL、PHP的编译参数的命令如下:
1、nginx编译参数:
#/usr/local/nginx/sbin/nginx -V
2、apache编译参数:
# cat /usr/local/apache/build/config.nice
3、php编译参数:
# /usr/local/php/bin/php -i |grep configure
4、mysql编译参数:
# cat /usr/local/mysql/bin/mysqlbug|grep configure
Linux下查看apache、PHP的编译模块的命令如下:
php编译模块:
# /usr/local/php/bin/php -m
apache编译模块:
#/usr/local/apache/bin/apachectl -M
查看php依赖的库:
ldd /usr/local/php/bin/php
查看php-fpm依赖的库:
ldd /usr/local/php/sbin/php-fpm
查看mysql依赖的库:
ldd /usr/local/mysql/bin/mysql
查看nginx依赖的库:
ldd /usr/local/nginx/sbin/nginx