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.