all_start.bat 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. @echo off
  2. set tmp=%~dp0temp
  3. set PATH=%~dp0;%~dp0bin;%~dp0php;%~dp0mysql\bin;%~dp0mongodb\bin;%~dp0sendmail
  4. set PATH=%~dp0imagemagick;%SystemRoot%;%PATH%
  5. set PATH=%Path%;%~dp0httpd\bin
  6. Rem On Windows the following is not valid
  7. Rem set php_fcgi_children = 20
  8. Rem Each process handles the maximum number of requests
  9. Rem set php_fcgi_max_requests = 2000
  10. Rem Start php-fastcgi on port 9000
  11. set PHP_HELP_MAX_REQUESTS = 100
  12. for /l %%i in (1 1 1) do (
  13. REM bin\runhiddenconsole php\php-cgi.exe -b 127.0.0.1:9000 -c php\php.ini
  14. bin\runhiddenconsole php_cgi_spawner\php-cgi-spawner.exe "php\php-cgi.exe -c php\php.ini" 9000 4+16
  15. )
  16. Rem Start Memcached (m = memory to use in mb, c = max connections allowed)
  17. bin\runhiddenconsole memcached\memcached.exe -m 10 -c 2048
  18. Rem Start MySQL using the mysql\my.ini config file
  19. start mysql\bin\mysqld.exe --defaults-extra-file=\PDT\mysql\my.ini --datadir=\PDT\data\mysql
  20. Rem MongoDB
  21. del \PDT\data\mongodb\mongod.lock
  22. bin\runhiddenconsole mongodb\bin\mongod.exe --dbpath=\PDT\data\mongodb
  23. Rem Nginx
  24. cd nginx
  25. start nginx.exe
  26. cd ..
  27. Rem Apache2
  28. bin\runhiddenconsole httpd\bin\httpd.exe
  29. Rem Cron
  30. cd cron
  31. ..\bin\runhiddenconsole cron.exe
  32. cd ..
  33. Rem Redis
  34. Rem cd redis
  35. bin\runhiddenconsole redis\redis-server.exe redis\redis.conf
  36. cd ..
  37. Rem FileZillaFTP
  38. Rem filezillaftp\filezillaserver.exe
  39. Rem filezillaftp\filezillaserver.exe /start
  40. Rem start home page
  41. start http://localhost/home.php
  42. exit