标签:style http color io os ar sp div art
# nginx.conf server { listen 80; server_name localhost; access_log logs/localhost.access.log; location / { root D:/localhost/trunk; index index.html index.htm index.php; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } location ~ \.php$ { root D:/localhost/trunk; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
127.0.0.1 localhost
#start_service.bat @echo off REM 每个进程处理的最大请求数,或设置为 Windows 环境变量 set PHP_FCGI_MAX_REQUESTS=1000 echo Starting PHP FastCGI... RunHiddenConsole D:/php/php-cgi.exe -b 127.0.0.1:9000 -c D:/php/php.ini echo Starting nginx... RunHiddenConsole D:/nginx-1.7.5/nginx.exe -p D:/nginx-1.7.5
#stop_service.bat @echo off echo Stopping nginx... taskkill /F /IM nginx.exe > nul echo Stopping PHP FastCGI... taskkill /F /IM php-cgi.exe > nul exit
最后,双击start_service.bat启动相应服务。
标签:style http color io os ar sp div art
原文地址:http://blog.csdn.net/billfeller/article/details/39557073