解析PHP程序在Windows Azure内运行步骤
来源:互联网 发布:smo算法 python 编辑:程序博客网 时间:2024/06/07 03:37
PHP是一种非常流行的,主要用于处理动态网页的脚本语言。PHP用户对于能在Windows Azure平台内运行PHP应用必定会感到惊喜。
我们知道,微软Windows Azure平台相较与其他云计算平台的优势之一便在于其拥有便利的开发工具和熟悉的编程语言的先天优势。
下面我们就来看看,在Windows Azure内运行PHP应用是多么的简单和轻松。
前置条件:
PHP
IIS 7 (开启 ASP.NET, WCF HTTP Activation)
Microsoft Visual Studio 2008 SP1 (或更高)
Windows Azure Tools for Microsoft Visual Studio (June 2010)
代码:
1.首先,我们从http://windows.php.net/download/ 处下载非线程安全的最新版PHP.
笔者下载的是VC9 x86 Non Thread Safe (2010-Mar-04 20:11:07)版本。在下载页的侧边栏,我们可以看到VC6和VC9版本的差别,VC6版是用Visual Studio 6编译器编译的,而VC9版本是Visual Studio 2008编译器编译的,性能和稳定性都有提高。至于线程安全与非线程安全的区别在于Windows 操作系统采用多线程架构,而Linux和Unix采用多进程架构。
2.打开Visual Studio,新建项目->Visual C#->Cloud->Windows Azure Cloud Service。输入项目名称CloudService1,之后点击OK。
<span http:="" image20.it168.com="" 201007_0x0="" 134="" 20df7017f96e2d41.png',="" sizingmethod="scale" );="" width:="" 528px;="" display:="" inline-block;="" height:="" 334px"="" title="" style="word-wrap: break-word; word-break: break-all; padding: 0px; margin: 0px; ">
添加CGI_Web Role,重命名为PHP_WebCgiRole。点击ok。
<span http:="" image20.it168.com="" 201007_0x0="" 134="" 7b7524a37a95c5c6.png',="" sizingmethod="scale" );="" width:="" 522px;="" display:="" inline-block;="" height:="" 320px"="" title="" style="word-wrap: break-word; word-break: break-all; padding: 0px; margin: 0px; ">
- 解析PHP程序在Windows Azure内运行步骤
- PHP on Windows Azure 入门教学系列(一):在Windows Azure内运行PHP应用
- 在Windows Azure上运行Java程序
- DPM程序在windows下调试步骤:运行demo
- 在仿真器中运行时跳过Windows Azure Startup任务
- 安装在Windows Azure上的程序集
- 在Windows Azure虚拟主机上宿主Byteart Retail案例程序
- 在Windows运行Python程序
- 判断程序是否在VMWare内运行
- c语言在VC++6.0内运行步骤
- Windows Azure Platform (六) Windows Azure应用程序运行环境
- 简单解析PHP程序的运行流程
- PHP on Windows Azure 入门教学系列(3) ——在Windows Azure中部署Wordpress
- 利用Windows Schedule Task运行php程序
- windows下自动运行PHP程序
- windows命令行下运行PHP程序
- 实现一个程序在另一个程序内运行
- 在Azure中删除VirtualMachine的步骤
- java值传递以及引用传递
- 替换字符串中部分字符串,java
- 枚举的应用
- 实习总结(九)---黑客技术小盘点+
- Android 通话处理流程
- 解析PHP程序在Windows Azure内运行步骤
- gcc 增加 include 目录
- PHP生成静态html文件 的三种方法
- 数据库基础 之 “表”
- HDFS1.0源代码解析—DataNode数据接收线程DataXceiverServer与DataXceiver解析
- 如何保证自己的页面不被别人用IFRAME框架嵌套
- RedHat Linux 下安装MPLayer 编译源代码方法
- 2011架构师大会心得
- 一个问题引起的思考