Windows2003 Issues with nginx+php service startup I can only start with such batches now, but the user will stop working when they log off. Start_nginx.bat [Co

Source: Internet
Author: User
Tags nginx server
Windows2003 problems starting with the nginx+php service I can only start with such batches now, but a logoff user will stop working. Start_nginx.bat [Co
Windows2003 using the nginx+php service to start a problem
I can only start with such a batch now, but the user will stop working when they log off.

Start_nginx.bat
VBScript Code
  
   @echo Offrem "Starting the Nginx server ..." Start E:\nginx\nginx.exeREM "starts PHP FastCGI ..." Starting E:\nginx\ ... "" Start RunHiddenConsole.exe E:\php\php-cgi.exe-b 127.0.0.1:9000-c E:\php\php.ini


and seek expert guidance, above how to set can specify the system user identity start Nginx.exe program.

---------------------
Find the method that is added to the service startup on the Web, although the service is added and can be started, but not valid.
JScript Code
  
   1. Download the Microsoft Services Registration tool Srvany.exe, Instsrv.exe, stored in the e:\nginx\ directory http://eastedu.bl-changjiang.com/UploadFiles/2006-5/ 511179043.rar2. Install the Nginx service, switch the command line to E:\nginx\, and execute the following command instsrv Nginx e:\nginx\srvany.exe3. Under E:\nginx\, Edit a Nginx.reg file Windows Registry Editor Version 5.00[hkey_local_machine\system\currentcontrolset\services\nginx\ Parameters] "Application" = "E:\\nginx\\nginx.exe" "appparameters" = "" "Appdirectory" = "e:\\nginx\\" 5. Connect services to Programs, Command line execution regedit/s Nginx.reg



Is there any way to add Nginx.exe for service startup.

------Solution--------------------
Is it so boring that nginx must be better than IIS?
Besides, Microsoft has always rejected third-party software.
------Solution--------------------
In the Windows system, the file has a user group, change the properties of Nginx try
------Solution--------------------
discuss
Windows2003 using the nginx+php service to start a problem
I can only start with such a batch now, but the user will stop working when they log off.

Start_nginx.bat

VBScript Code

@echo off
REM "Starting Nginx server ..."
Start E:\nginx\nginx.exe
REM "Start php FastCGI ...".
St......
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.