Many times you will log in to a strange server;
When the environment needs to be adjusted;
It was a start, nothing at all;
Two eyes a smear everywhere looking for configuration items;
Fortunately, I have a note on this note;
Can be summed up in the first;
Most of the first to use which to obtain the directory;
And then get the configuration item location;
which mysql/usr/bin/mysql/usr/bin/mysql --help | grep -A1 ‘Default options‘
Bashcopy
which php/usr/local/apache2/php/bin/phpphp -i | grep "Loaded Configuration File"
Bashcopy
ps -ef | grep ‘http‘/usr/local/apache2/bin/httpd -V | grep ‘SERVER_CONFIG_FILE‘
Bashcopy
To put together is:/usr/local/apache2/conf/httpd.conf
ps -ef | grep ‘nginx‘
Bashcopy
If not, do it according to the Nginx location in
/www/server/nginx/sbin/nginx -t
Bashcopy
Nginx and configuration items are all in the directory;
ps -ef | grep ‘php-fpm‘
Bashcopy
Configuration item file path you see it at one glance;
Linux view Nginx, Apache, PHP, PHP-FPM, MySQL, and configuration items in the same directory