如何直接从Visual Studio 2008中部署Web应用程序?

如何直接从Visual Studio 2008中部署Web应用程序?

问题描述:

我用discountasp.net,我可以使用Visual Studio 2008能够直接发布的网站,虚拟主机。我使用的是专用的服务器现在(嗯,准确的说,亚马逊EC2 Windows)中,我应该怎么设置网络服务器,以便我能直接从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.

谢谢!

下面是从官方的亚马逊EC2 deverloper网站的教程(部署ASP.NET应用程序以亚马逊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")

如果您需要部署一个ASP.NET   直接从Microsoft应用程序   Visual Studio中,您可以使用复制   网站向导在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.

复制   网站向导允许您部署   使用文件传输应用   协议(FTP)或Microsoft Office   FrontPage服务器扩展。要使用   FTP,您必须安装FTP   IIS组件的以及许可证   端口20和21通过防火墙   使用EC2检查命令。

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.

[...]

使用亚马逊EC2,您可以部署   在专用的ASP.NET应用程序   在亚马逊的运行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.

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

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