如何直接从Visual Studio 2008部署Web应用程序? [英] How to deploy web app directly from Visual Studio 2008?

查看:197
本文介绍了如何直接从Visual Studio 2008部署Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经使用discountasp.net,我可以使用Visual Studio 2008将网站直接发布到Web主机。我现在正在使用专用的服务器(确切地说,是亚马逊EC2 Windows),我应该如何设置Web服务器,以便我可以直接从VS 2008部署网站?我试图设置一个FTP服务器,但无法使其正常工作。

I used to use discountasp.net and I can use Visual Studio 2008 to "publish" the website directly to the web host. I am using a dedicated server now (well, to be exact, Amazon EC2 Windows), how should I setup the web server so I can deploy the website directly from VS 2008? I tried to setup a FTP server but couldn't get it working.

谢谢!

推荐答案

这是Amazon EC2官方脱装器官方的教程(将ASP.NET应用程序部署为Amazon EC2,就像典型的远程服务器一样,本教程将向您展示如何)

Here is a tutorial from the official Amazon EC2 deverloper site ("Deploy ASP.NET application to Amazon EC2 like a typical remote server. This tutorial shows you how")


如果您需要直接从Microsoft
Visual Studio部署ASP.NET
应用程序,则可以使用Copy
网站向导在Microsoft
Visual Studio 2005和更高版本。

If you need to deploy an ASP.NET application directly from Microsoft Visual Studio, you can use the Copy Web Site Wizard available in Microsoft Visual Studio 2005 and later.

复制
网站向导允许您使用文件传输$ b部署
应用程序$ b协议(FTP)或Microsoft Office
FrontPage服务器扩展。要使用
FTP,您必须使用ec2-authorize命令通过防火墙
安装IIS 的FTP
组件,并允许
端口20和21。 / strong>

The Copy Web Site Wizard allows you to deploy applications using File Transfer Protocol (FTP) or Microsoft Office FrontPage Server Extensions. To use FTP, you must install the FTP component of IIS as well as permit ports 20 and 21 through the firewall using the ec2-authorize command.

[...]

使用Amazon EC2,您可以部署
ASP .NET应用程序专用于
在Amazon的
数据中心中运行的Windows实例。要部署
应用程序,您需要根据AMI模板创建
实例。
创建实例后,
访问管理员密码,
然后配置防火墙规则和
远程桌面到服务器。要
提供持久存储,您创建
一个EBS卷,然后设置IIS和
的ASP.NET应用程序。您可以
将ASP.NET应用程序部署到
服务器,其工具包括Visual Studio
或通过FTP。

With Amazon EC2, you can deploy ASP.NET applications on dedicated Windows instances running in Amazon’s data centers. To deploy the application, you need to create an instance based on an AMI template. After creating the instance, you access the administrator password, then configure a firewall rule and Remote Desktop to the server. To provide persistent storage, you create an EBS volume, and then set up IIS and the ASP.NET application. You can deploy ASP.NET applications to the server with tools like Visual Studio or through FTP.

来自:在Amazon EC2上部署ASP.NET应用程序(通过archive.org)

From: Deploying ASP.NET Applications on Amazon EC2 (via archive.org)

这篇关于如何直接从Visual Studio 2008部署Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆