windows 下搭建简易nginx+PHP环境

2016年11月19日 14:40:16 星期六

官网下载 nginx, php windows下的源码包(windows下不用安装, 解压即可)

修改配置文件, (稍后补上)

路径如下:

启动脚本:

nginx_start.bat

1 @echo off
2 set currentDir=%cd%
3 cd %currentDir%
4 cd nginx
5 
6 echo Starting Nginx...
7 nginx.exe -c ./conf/nginx.conf

php_start.bat

1 @echo off
2 set currentDir=%cd%
3 
4 set "phpCGI=%currentDir%phpphp-cgi.exe"
5 set "phpConf=%currentDir%phpphp.ini"
6 
7 echo Starting PHP FastCGI... 
8 %phpCGI% -b 127.0.0.1:9000 -c %phpConf%

 双击两个脚本执行, 不分先后, 不想使用的时候, 直接关闭命令行窗口就可以了

原文地址:https://www.cnblogs.com/iLoveMyD/p/6080540.html