Linux view Nginx, Apache, PHP, PHP-FPM, MySQL, and configuration items in the same directory

Source: Internet
Author: User
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;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.