In the windows environment so I set up PHP environment:
1. Start nginx
2. Start php-cgi process
Such a problem arises, when requesting more than a certain number of times, PHP-cgi will hang
How to solve?
The idea is there, write a daemon to guard, to automatically restart after hang.
How to achieve?
Use nssm to the php-cgi.exe packaged as a service, it is the guardian.
step:
1. Download NSSM , Download: http://www.nssm.cc/download
2. unzip it into nssm.exe location of
3. performed nssm install <servicename>, and set the parameters of the path
4. Turn service
It's done, from running nginx + php Dove silky as in the windows.