This article describes the Linux view nginx, Apache, PHP, PHP-FPM, MySQL and configuration items in the directory, now share to everyone, the need for friends can refer to
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 '
Bash
Copy
which Php/usr/local/apache2/php/bin/phpphp-i | grep "Loaded Configuration File"
Bash
Copy
Ps-ef | grep ' http '/usr/local/apache2/bin/httpd-v | grep ' Server_config_file '
Bash
Copy
To put together is:/usr/local/apache2/conf/httpd.conf
Ps-ef | grep ' Nginx '
Bash
Copy
If not, do it according to the Nginx location in
/www/server/nginx/sbin/nginx-t
Bash
Copy
Nginx and configuration items are all in the directory;
Ps-ef | grep ' PHP-FPM '
Bash
Copy
Configuration item file path you see it at one glance;