How to determine if the PHP nginx MySQL process in Linux is working properly

Source: Internet
Author: User
Title, as described in.

Reply content:

Title, as described in.

ps aux | grep phpps aux | grep nginxps aux | grep mysql

That's probably what it looks like?

Write a simple PHP program, connect to Mysql, optional to do some reading and writing operations,
Then the PHP program is configured to the Nginx.

Use the Web address of your own curl this PHP program,
The ability to return to the preset results is a good indication that PHP Nginx Mysql Three guys are working properly.

I would like to make a statement, for Nginx This service process, can also be used to service manage ...

service nginx status

ps aux | grep xx
Used to view the XX process (service) situation

netstat -atnp | grep :80

To view the service network situation, two commands are used together. Sometimes the service process is normal, but due to firewall problems outside or inaccessible to, through the Netstat and tcpdump and other tools will probably be able to analyze the reasons.

You can write a shell script or implement it in a different language.
Put in a timed task, request a URL request periodically, this request contains PHP connection database information, error sent to you text.

  • 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.