winSw

#重命名winSW.exe为php-cgi-service.exe 
#新建php-cgi-service.xml并配置
<service>
  <id>nginx-service</id>
  <name>nginx Service (powered by WinSW)</name>
  <description>This service is a service created from a minimal configuration</description>
  <executable>nginx.exe</executable>  
</service>

#安装到服务
php-cgi-service.exe install
php-cgi-service.exe uninstall