码迷,mamicode.com
首页 > Windows程序 > 详细

windows 下搭建简易nginx+PHP环境

时间:2016-11-19 16:18:29      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:class   pre   src   ges   技术   令行   配置文件   http   启动   

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环境

标签:class   pre   src   ges   技术   令行   配置文件   http   启动   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!