Skip to content

Instantly share code, notes, and snippets.

@helanan
Created March 21, 2018 15:37

Revisions

  1. @maiorano84 maiorano84 revised this gist Aug 20, 2015. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions nginx-restart.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    @ECHO OFF
    call nginx-stop.bat
    call nginx-start.bat
    EXIT /b
  2. @maiorano84 maiorano84 revised this gist Aug 19, 2015. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions nginx-stop.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    @ECHO OFF
    taskkill /f /IM nginx.exe
    taskkill /f /IM php-cgi.exe
    EXIT /b
  3. @maiorano84 maiorano84 created this gist Aug 19, 2015.
    12 changes: 12 additions & 0 deletions nginx-start.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    @ECHO OFF

    pushd C:\nginx

    ECHO Starting PHP FastCGI...
    RunHiddenConsole.exe "C:\php\php-cgi.exe" -b 127.0.0.1:9000 -c "C:\php\php.ini"

    ECHO Starting NGINX
    start nginx.exe

    popd
    EXIT /b