How to add php-cgi.exe to windows service
How to add php-cgi.exe to windows service, problems encountered in php+nginx integration
——Solution——————–
It’s not the same concept at all. php-cgi is an application, and the service is a special program that does not run at the same level as the application.
The description of php-cgi does not say that it can be added to the service. Parameters
1. There should be a fastcgi process management tool similar to php-fpm under Windows. You can add relevant startup items in the registry to manage fastcgi, but a service is not necessarily required.
2. You can use VC to write a service yourself and then start the process in the service