Skip to content

Commit 3bb6a88

Browse files
author
lobtao
committed
support nginx
1 parent e67acdf commit 3bb6a88

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@echo off
2+
3+
cd ./command
4+
5+
set php_home=../php_7.0.9
6+
set nginx_home=../nginx_1.14.2
7+
8+
REM Windows 下无效
9+
REM set PHP_FCGI_CHILDREN=5
10+
11+
REM 每个进程处理的最大请求数,或设置为 Windows 环境变量
12+
set PHP_FCGI_MAX_REQUESTS=1000
13+
14+
REM RunHiddenConsole.exe %php_home%/phpdesktop_php.exe init.php
15+
16+
echo Starting nginx...
17+
RunHiddenConsole.exe %nginx_home%/phpdesktop_nginx.exe -p %nginx_home%
18+
19+
echo Starting PHP FastCGI...
20+
RunHiddenConsole.exe phpdesktop_xxfpm.exe "%php_home%/phpdesktop_php-cgi.exe -c %php_home%/php.ini" -n 5 -i 127.0.0.1 -p 9000
21+
22+
cd ..
23+

0 commit comments

Comments
 (0)