Skip to content

Instantly share code, notes, and snippets.

@yujp
Created November 9, 2014 02:03
Show Gist options
  • Save yujp/0ac3c3f262f0c8a8db11 to your computer and use it in GitHub Desktop.
Save yujp/0ac3c3f262f0c8a8db11 to your computer and use it in GitHub Desktop.
@REM shudown Nginx
system\nginx\nginx.exe -s stop -c system\nginx\conf\nginx.conf
taskkill /f /IM nginx.exe
@REM rmdir /S /Q temp
@REM shutdown PHP-CGI
taskkill /f /IM php-cgi.exe
@REM shutdown MySQL
system\mysql\bin\mysqladmin.exe -u root shutdown
taskkill /f /IM mysqld.exe
@REM pause
@REM PHP_FCGI_CHILDREN is not enabled on Windows
SET PHP_FCGI_MAX_REQUESTS=0
SET PHP_FCGI_CHILDREN=2
@REM run Nginx
@IF NOT EXIST temp mkdir temp
@IF NOT EXIST logs mkdir logs
start system\nginx\nginx.exe -c system\nginx\conf\nginx.conf
@REM run PHP-CGI
system\RunHiddenConsole.exe system\php\php-cgi.exe -b 127.0.0.1:9000 -c system\php\php.ini
@REM run MySQL
system\RunHiddenConsole.exe system\mysql\bin\mysqld.exe --console --datadir=.\data\mysql --pid-file=.\logs\mysql.pid
@REM pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment