Using Cygwin to run nginx on Windows


Is it possible to run a Linux installation of nginx from Cygwin? Or should I run the Windows version? Basically I want to be able to restart Cygwin from command prompt instead of having to end the process in the task manager when I change the config file. Windows nginx doesn't support this but Linux nginx does.

Best Answer

If all you want to do is restart something from the command line in Windows, you can terminate a running process via command line with the taskkill command, or the stop-process cmdlet in Powershell.

I don't see nginx in list of Cygwin packages so you'd have to download the nginx sources and compile under cygwin for it to work.

Related Question