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

Source: Internet
Author: User
Tags fpm

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

Related Article

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.