which mysql //获取mysql目录得到 /usr/bin/mysql
/usr/bin/mysql --help | grep -A1 'Default options' //然后获取配置项位置
which php //获取php目录
php -i | grep "Loaded Configuration File" //获取php配置项位置
ps -ef | grep 'http' //获取apache目录
/usr/local/apache2/bin/httpd -V | grep 'SERVER_CONFIG_FILE' //获取apache的配置项位置
ps -ef | grep 'http' //获取apache目录
/usr/local/apache2/bin/httpd -V | grep 'SERVER_CONFIG_FILE' //获取apache的配置项位置
whereis nginx //获取nginx目录
ps -ef | grep 'nginx' //获取nginx的配置项位置
ps -ef | grep 'php-fpm' //获取php-fpm的配置项位置