首页 > Windows开发 > 详细

windows 下搭建简易nginx+PHP环境

时间:2016-11-19 16:17:03      阅读:352      评论:0      收藏:0      [点我收藏+]

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%\php\php-cgi.exe"
5 set "phpConf=%currentDir%\php\php.ini"
6 
7 echo Starting PHP FastCGI... 
8 %phpCGI% -b 127.0.0.1:9000 -c %phpConf%

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

 

windows 下搭建简易nginx+PHP环境

原文:http://www.cnblogs.com/iLoveMyD/p/6080540.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!