安装目录:D:/webServer/
所需软件:

    mysql-installer-community-5.5.34.0.msi

        下载:http://cdn.mysql.com/Downloads/MySQLInstaller/mysql-installer-community-5.5.34.0.msi

    php-5.3.27-Win32-VC9-x86.zip

        下载:http://windows.php.net/downloads/releases/php-5.3.27-Win32-VC9-x86.zip

    nginx-1.4.3.zip

        下载:http://nginx.org/download/nginx-1.4.3.zip

    RunHiddenConsole.zip #一个是程序在后台运行的命令行软件

        下载:http://119.188.72.52/7/ishare.down.sina.com.cn/17366991.zip?ssig=bkKdOMhRA%2B&Expires=1384272000&KID=sina,ishare&fn=RunHiddenConsole.zip

    

一、安装步骤:

    1、安装数据库:mysql-installer-community-5.5.34.0.msi 到 D:/webServer/mysql55。

    

    2、解压php-5.3.27-Win32-VC9-x86.zip 到 D:/webServer/php53。

    

    3、解压nginx-1.4.3.zip 到 D:/webServer/ngnix14。

    
二、配置:

    1、配置D:/WebServer/nginx14/conf/nginx.conf

        a) 修改根目录

           +-------------------------------------------------------------+

            location / {

                root   html; #####这里修改成实际的根目录

                index  index.html index.htm index.php;

            }

            +-------------------------------------------------------------+

        

        b) 使nginx支持php

          +-------------------------------------------------------------+

            location ~ \.php$ {

            #    root           html;#####这里修改成实际的根目录, 可以继承上面的。

                fastcgi_pass   127.0.0.1:9000;

                fastcgi_index  index.php;

                fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name; #########修改成$document_root

                include        fastcgi_params;

            }

            +-------------------------------------------------------------+

        
三、 启动终止服务

    1、nginx

        a) 启动:

            +-------------------------------------------------------------+

            C:\Documents and Settings\Administrator>d:

            D:\>cd webServer\nginx14

            D:\webServer\nginx14>nginx.exe

            +-------------------------------------------------------------+

b) 停止:

            +-------------------------------------------------------------+

            C:\Documents and Settings\Administrator>d:

            D:\>cd webServer\nginx14

            D:\webServer\nginx14>nginx.exe -s stop

            +-------------------------------------------------------------+

            或者

            //直接杀死进程

            +-------------------------------------------------------------+

            C:\Documents and Settings\Administrator>tskill nginx

            +-------------------------------------------------------------+

c) 帮助

            +-------------------------------------------------------------+

            D:\webServer\nginx14>nginx.exe -h

            nginx version: nginx/1.4.3

            Usage: nginx [-?hvVtq] [-s signal] [-c filename] [-p prefix] [-g directives]

            Options:

              -?,-h         : this help

              -v            : show version and exit

              -V            : show version and configure options then exit

              -t            : test configuration and exit

              -q            : suppress non-error messages during configuration testing

              -s signal     : send signal to a master process: stop, quit, reopen, reload

              -p prefix     : set prefix path (default: NONE)

              -c filename   : set configuration file (default: conf/nginx.conf)

              -g directives : set global directives out of configuration file

            +-------------------------------------------------------------+

            

    2、php-cgi

        a) 启动:

            +-------------------------------------------------------------+

            C:\Documents and Settings\Administrator>d:

            D:\>cd webServer\php53

            D:\webServer\php53>php-cgi.exe -b 127.0.0.1:9000

            +-------------------------------------------------------------+

            

            以上启动方式的cmd窗口不会自动关闭,也就是没有在后台运行。 解决方法如下:

                解压 RunHiddenConsole.zip 内的 RunHiddenConsole.exe 到 D:/webServer/php53/ 目录内,然后执行以下命令

                +-------------------------------------------------------------+

                C:\Documents and Settings\Administrator>d:

                D:\>cd webServer\php53

                D:\webServer\php53>start RunHiddenConsole.exe php-cgi.exe -b 127.0.0.1:9000

                +-------------------------------------------------------------+

            

        b) 停止:

            +-------------------------------------------------------------+

            C:\Documents and Settings\Administrator>tskill php-cgi

            +-------------------------------------------------------------+

            

        c) 帮助

            +-------------------------------------------------------------+

            D:\webServer\php53>php-cgi.exe -h

            Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]

                   php <file> [args...]

              -a               Run interactively

              -b <address:port>|<port> Bind Path for external FASTCGI Server mode

              -C               Do not chdir to the script's directory

              -c <path>|<file> Look for php.ini file in this directory

              -n               No php.ini file will be used

              -d foo[=bar]     Define INI entry foo with value 'bar'

              -e               Generate extended information for debugger/profiler

              -f <file>        Parse <file>.  Implies `-q'

              -h               This help

              -i               PHP information

              -l               Syntax check only (lint)

              -m               Show compiled in modules

              -q               Quiet-mode.  Suppress HTTP Header output.

              -s               Display colour syntax highlighted source.

              -v               Version number

              -w               Display source with stripped comments and whitespace.

              -z <file>        Load Zend extension <file>.

              -T <count>       Measure execution time of script repeated <count> times.

            +-------------------------------------------------------------+

            
四、配置完毕,启动nginx和php-cgi之后

        1、根目录新建 index.php

            +-------------------------------------------------------------+

            <?php

                phpinfo();

            ?>

            +-------------------------------------------------------------+

        

        2、在浏览为输入 localhost/index.php  应该看到可爱的info页面了。。

WNMP环境搭建步骤 nginx1.4.3+php-5.3.27+mysql-5.5+RunHiddenConsole的更多相关文章

  1. Java Web 环境搭建步骤(超详细,包括前期安装步骤)

    Java Web 环境搭建步骤 安装对应版本的JDK 配置环境变量 本人安装的路径是C盘,在path中加入C:\Program Files\Java\jdk1.8.0_65\bin 测试配置成功,cm ...

  2. Linux vagrant+virtualbox环境搭建步骤

    Linux vagrant+virtualbox环境搭建步骤 Vagrant 是一款用来构建虚拟开发环境的工具,非常适合 php/python/ruby/java 这类语言开发 web 应用. 我们可 ...

  3. [转]MonkeyRunner在Windows下的Eclipse开发环境搭建步骤(兼解决网上Jython配置出错的问题)

    MonkeyRunner在Windows下的Eclipse开发环境搭建步骤(兼解决网上Jython配置出错的问题)   网上有一篇shangdong_chu网友写的文章介绍如何在Eclipse上配置M ...

  4. 在Android Studio上测试运行,Unity发布成Android包的环境搭建步骤

      我用的是unity5.4.3版本,jdk是1.8.0_131版本,Android-SDK是r24.4.1版本,Android-NDK是r13b版本,作者是刚开始写博客,希望对在unity摸索的人有 ...

  5. Windows2008 R2 X64 PHP环境搭建步骤

    Windows2008 R2 X64 PHP环境搭建步骤: 下载:Mysql5.7.23.PHP5.6.Zend.XCahe 一.安装MYSQL.导入数据: 解压MYsql压缩包,并新建Data目录, ...

  6. Hadoop分布环境搭建步骤,及自带MapReduce单词计数程序实现

    Hadoop分布环境搭建步骤: 1.软硬件环境 CentOS 7.2 64 位 JDK- 1.8 Hadoo p- 2.7.4 2.安装SSH sudo yum install openssh-cli ...

  7. python+selenium环境搭建步骤

    一.自动化简介 1.自动化测试概念: 是把以人为驱动的测试转化为机器执行的一种过程,它是一种以程序测试程序的过程 2.自动化测试分类: 一般IT上所说的自动化测试是指功能自动化测试,通过编码的方式用一 ...

  8. 基于Python3.7的robotframework环境搭建步骤

    一.前言 Robot Framework作为公司能快速落地实现UI自动化测试的一款框架,同时也非常适合刚入门自动化测试的朋友们去快速学习自动化,笔者计划通过从搭建逐步到完成自动化测试的过程来整体描述它 ...

  9. Windows下Nginx+Mysql+Php(wnmp)环境搭建

    前言 最近想在windows下使用nginx搭建web环境,本来想用套件(WNMP)一键安装,但后来放弃了,觉得还是自己动手,丰衣足食的好,而且套件的局限性太大.所以后来就各种搜索,看到前辈写关于wn ...

随机推荐

  1. html abbr标签 语法

    html abbr标签 语法 作用:标记一个缩写 大理石平台 说明:<abbr> 标签指示简称或缩写,比如 "WWW" 或 "NATO".通过对缩写 ...

  2. 洛谷P2482 [SDOI2010]猪国杀——题解

    猪国杀,模拟题的一颗耀眼的明珠,成长大牛.锻炼码力必写题! 模拟题没什么思维难度.只要按部就班地去做就是.模拟简单在这,难也在这.因为题面巨长,条件巨多,忽疏一点都有可能全盘皆输.故推荐考试时碰见了, ...

  3. sqli-lab(37)

    0X01 看看源码 what is mean? 定义和用法 mysql_real_escape_string() 函数转义 SQL 语句中使用的字符串中的特殊字符. 下列字符受影响: \x00 \n ...

  4. [HDU3072]:Intelligence System(塔尖+贪心)

    题目传送门 题目描述 “这一切都是命运石之门的选择.”试图研制时间机器的机关SERN截获了中二科学家伦太郎发往过去的一条短 信,并由此得知了伦太郎制作出了电话微波炉(仮).为了掌握时间机器的技术,SE ...

  5. 大数据笔记(二十二)——大数据实时计算框架Storm

    一. 1.对比:离线计算和实时计算 离线计算:MapReduce,批量处理(Sqoop-->HDFS--> MR ---> HDFS) 实时计算:Storm和Spark Sparki ...

  6. POJ 1625 Censored ( Trie图 && DP && 高精度 )

    题意 : 给出 n 个单词组成的字符集 以及 p 个非法串,问你用字符集里面的单词构造长度为 m 的单词的方案数有多少种? 分析 :先构造出 Trie 图方便进行状态转移,这与在 POJ 2278 中 ...

  7. Android MQTT的发布与订阅

    一.MQTT介绍 链接1(菜鸟教程):https://www.runoob.com/w3cnote/mqtt-intro.html 连接2(MQTT中文网):http://mqtt.p2hp.com/ ...

  8. curl下载文件时自动创建目录

    有时候需要自动创建多级目录 按照如下格式即可 curl -o d:/lei/demo/test.jpg --create-dirs http://img.7160.com/uploads/allimg ...

  9. linux中 > 、>> 的用法

    linux中>表示覆盖原文件内容(文件的日期也会自动更新),>>表示追加内容(会另起一行,文件的日期也会自动更新). 1 将history命令执行的结果保存到history.log文 ...

  10. Linux高级调试与优化——gdb调试命令

    番外 2019年7月26日至27日,公司邀请<软件调试>和<格蠹汇编——软件调试案例集锦>两本书的作者张银奎老师进行<Linux高级调试与优化>培训,有幸聆听张老师 ...