Cannot start Nginx executable

I installed the Nginx web server on my computer under Windows 7 with php.

When I run "nginx.exe", the command line opens for a second and then closes automatically, so I can not control it on the command line. Could not find a solution anywhere.

I want to open "nginx.exe" and use various commands there.

Otherwise, the server is running.

+6
source share
1 answer
  • First you need to know the path to the nginx.exe file.

  • After that, right-click on the desktop and select a new text document.

  • Then enter or paste the following text:

c:\ cd c:\nginx start nginx.exe cmd /k 
  1. Now save the file with whatever name you want to use, but add the .bat extension to it. Nginx.bat example

  2. Now you can click on the file and it should open a command prompt, change the directory, start the server, and then leave the invitation open in the correct directory so that you can run your commands.

+2
source

All Articles