zoukankan      html  css  js  c++  java
  • 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
Copyright © 2011-2022 走看看