Windows2018 nginx and php-pfm cannot be run in the background? I logged out and the server stopped running.

if the nginx+php7 php-pfm service logout system cannot be run on Ali Cloud windows server?
how do I turn it into a service running all the time?

I have some methods https://jingyan.baidu.com/art.
can only convert nginx to run in the background, but how can php-cgi be modified to start as a service?

ask for advice


sc create php binpath= "c:/php.exe" displayname= "php-fpm" start= auto

Menu