Welcome! Log In Create A New Profile

Advanced

Re: How to make the Nginx-0.7.54(Windows official release) RUN AS WINDOWS SERVICE?

May 02, 2009 09:47AM
On Sat, May 02, 2009 at 05:34:59AM -0400, kernelforce wrote:

> Recently, I got Nginx-0.7.54(official Windows binary), it is simply to install, I'm very apperciate it.
>
> But in this version, Nginx must be started as
>
> cd c:\nginx
> start nginx
>
>
> My question is how to make it run as a windows service?
> Which is important for a server to start the nginx service before any user is loggin on.
>
> I used to achieve it as
>
> cd /d c:\nginx\
> instsrv Nginx c:\nginx\srvany.exe
>
> and add follow register information
>
> Windows Registry Editor Version 5.00
>
>
> "Application"="C:\\nginx\\nginx.exe"
> "AppParameters"=""
> "AppDirectory"="C:\\nginx\\"
>
>
> But these above doesn't work in this version. I think the problem may be lie in the difference of starting nginx. But I don't have any more idea, please help me, thx.

Look in the event log and c:/nginx/logs/error.log.
As to service, I plan to add capabilty to rus as service without SrvAny.


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

How to make the Nginx-0.7.54(Windows official release) RUN AS WINDOWS SERVICE?

kernelforce May 02, 2009 05:34AM

Re: How to make the Nginx-0.7.54(Windows official release) RUN AS WINDOWS SERVICE?

Igor Sysoev May 02, 2009 09:47AM

Re: How to make the Nginx-0.7.54(Windows official release) RUN AS WINDOWS SERVICE?

Aleksandar Lazic May 02, 2009 11:44AM

Re: How to make the Nginx-0.7.54(Windows official release) RUN AS WINDOWS SERVICE?

Igor Sysoev May 02, 2009 12:01PM

Re: How to make the Nginx-0.7.54(Windows official release) RUN AS WINDOWS SERVICE?

Kernel Force May 02, 2009 02:51PM

RE: How to make the Nginx-0.7.54(Windows official release) RUN AS WINDOWS SERVICE?

AMP Admin May 02, 2009 03:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 268
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready