1. 下载 nginx   nginx.org

2. 下载 php  windows.php.net   选择 nts 版本,解压后,将php.ini.development 重命名为  php.ini

3. 修改nginx.conf

   server {
listen 80;
server_name localhost 127.0.0.1; #charset koi8-r; #access_log logs/host.access.log main; location / {
root C:/xampp_5.6/htdocs/v1.epiedc.net/backend/web;
index index-test.php index.html index.php index.htm;
} #error_page 404 /404.html; # redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
} # proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root C:/xampp_5.6/htdocs/v1.epiedc.net/backend/web;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
include fastcgi_params;
} # deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}

  如果新增一个端口监控则:

	server {
listen 1006;
server_name localhost ; location / {
root C:/xampp_5.6/htdocs/inspinia;
index index.html index.php index.htm;
}
}

4. 开启nignx

在nginx目录中,运行cmd

start nginx

nginx -s stop 立即停止,不保存信息

nginx -s quit 正常退出,并保存信息

ngnix -s reload 重启

5. 在php目录中, php-cgi.exe -b 127.0.0.1:9000

http://blog.csdn.net/gwpking/article/details/54124564

6. 安装 mysql ,下载指定版本mysql 到目录,修改my.ini ,请注意目录分隔符

[client]
port = 3306
default-character-set = utf8
[mysqld]
port=3306
character_set_server=utf8
basedir=D:/server/mysql-5.7.17-winx64/mysql-5.7.17-winx64
#解压目录下data目录
datadir=D:/server/mysql-5.7.17-winx64/mysql-5.7.17-winx64/data sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

mysqld install MySQL --defaults-file="D:/tools/mysql-5.7.9-winx64/my.ini"

mysqld  --defaults-file="D:\tools\mysql-5.7.9-winx64\my.ini" --console --skip-grant-tables

8. 安装服务  mysqld --install MYSQL --defaults-file = d:/server/aaa/my.ini

9. 初始化,创建数据库文件,先建立data文件夹,  mysqld --initialize-insecure --user=mysql

10. 启动数据库 net start  mysql

关闭数据库 net stop mysql

移除服务器名 mysqld --remove mysql

Windows 配置 nginx php 多版本切换的更多相关文章

  1. windows配置nginx实现负载均衡集群

    windows配置nginx实现负载均衡集群2014-08-20 09:44:40   来源:www.abcde.cn   评论:0 点击:617 网上大部分关于nginx负载均衡集群的教程都是lin ...

  2. windows配置nginx实现负载均衡集群 -请求分流

    windows配置nginx实现负载均衡集群 一.windows上安装nginx 1.下载nginx的windows版本http://nginx.org/en/download.html 2.把压缩文 ...

  3. 【开发工具】- Windows下多个jdk版本切换

    一.直接安装jdk,如图我安装了JDK6.JDK7和JDK8三个版本: 二.在安装JDK8后需要在 C:\Windows\System32 该目录下删除 java.exe 和 javaw.exe两个文 ...

  4. 基于Windows 配置 nginx 集群 & 反向代理

    1.下载 nginx 下载页面 : http://nginx.org/en/download.html 具体文件: http://nginx.org/download/nginx-1.7.0.zip ...

  5. Git for Windows之日志查看与版本切换

    1.查看本地版本库的修改日志 (1).通过log指令查看完整日志 (2).通过 log --pretty=oneline查看简易版日志 2.版本切换 (1).切换到本地版本库最新的版本,通过reset ...

  6. Windows 配置nginx服务器 运行php项目

    1下载 http://nginx.org/en/download.html 选择稳定版下载. 2 解压后 直接双击nginx.exe 双击后一个黑色的弹窗一闪而过 3 修改配置文件nginx.conf ...

  7. 烂泥:Windows下安装与配置Nginx web服务器

    本文由秀依林枫提供友情赞助,首发于烂泥行天下. 前几篇文章,我们使用nginx都是在linux环境下,今天由于工作的需要.需要在windows环境也使用nginx搭建web服务器. 下面记录下有关ng ...

  8. Windows下Nginx配置SSL实现Https访问(包含证书生成)

    Vincent.李   Windows下Nginx配置SSL实现Https访问(包含证书生成) Windows下Nginx配置SSL实现Https访问(包含证书生成) 首先要说明为什么要实现https ...

  9. CentOS 6.5移除openJDK及JDK安装环境变量配置及JDK版本切换

    一.查找已经安装的open JDK [root@localhost ~]# rpm -qa|grep jdk java--openjdk-.el6_3.x86_64 java--openjdk-1.7 ...

随机推荐

  1. Thread.setDaemon详解

    Thread.setDaemon详解 线程分为两种类型:用户线程和守护线程.通过Thread.setDaemon(false)设置为用户线程:通过Thread.setDaemon(true)设置为守护 ...

  2. orzdba_monitor.sh脚本使用

    1.orzdba_monitor.sh脚本使用 ./orzdba_monitor.sh 主要是用nohup同时在后台调用orzdba,启动下面三个命令 [root@node02 scripts]# p ...

  3. 十八 线程暂停 suspend/ resume

    1  Suspend.resume 的缺点1 :独占!  线程执行到同步块中,如果线程暂停了,不会释放锁. 比如,比如System.out.println()方法就是一个同步方法, 如果线程调用Sys ...

  4. Shiro的学习

    Apache Shiro 是 Java 的一个安全(权限)框架.它可以非常容易的开发出足够安全的应用,其不仅可以用在 JavaSE 环境,也可以用在 JavaEE 环境 . Shiro 可以完成:认证 ...

  5. SQL Server 全文索引的硬伤

    本文关键字:SQL Server全文索引.CONTAINS.FREETEXT.CONTAINSTABLE.FREETEXTTABLE等谓词. 想象这样一个场景:在DataBase_name.dbo.T ...

  6. Promise题目

    setTimeout(function () { console.log(1); }, 0) new Promise(function executor(resolve) { console.log( ...

  7. ceph---luminous 块存储(RBD)搭建

    1. 创建pool 创建存储池: ceph osd pool create {pool-name} {pg-num} [{pgp-num}] [replicated] [crush-ruleset-n ...

  8. ConcurrentHashMap放入null值报错

    //ConcurrentHashMap源码: /** Implementation for put and putIfAbsent */ final V putVal(K key, V value, ...

  9. Vue.js+Koa2移动电商 笔记

    一.搭建项目架构: 项目采用Webpack+Vue-router的架构方式,开始安装(基于windows系统) 1.按Win+R,然后在文本框中输入cmd,回车打开命令行,输入vue-cli安装命令: ...

  10. Swift 动画片段

    UIView.transitionWithView( self.WeatherDetailsView, duration: 0.7, options: .TransitionCrossDissolve ...