我可以自动创建IIS中的.NET Web应用程序? [英] Can I automate creating a .NET web application in IIS?

查看:142
本文介绍了我可以自动创建IIS中的.NET Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要部署在几个笔记本电脑的Web应用程序(虽然它是一个Web应用程序,它的目的是通过本地主机只运行 - 因而需要在多个部署不同的机器)。

I need to deploy a web application on several laptops (although it is a web application, it is intended to run via localhost only - thus the need to deploy on several different machines).

通常我会去IIS和右键单击一个目录下创建一个Web应用程序,但我非常希望自动安装的这条腿。能不能做到?

Normally I would go to IIS and right click a directory to create a web application, but I would very much like to automate this leg of the installation. Can it be done?

编辑:
我的问题,显然,不是很清楚。

edit: My question, clearly, isn't very clear.

我要使用IIS,但我想在不打开IIS Microsoft管理控制台(MMC)自动创建Web应用程序。

推荐答案

我可以sugest你拿<一个href=\"http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/1805162e-6ac5-4a98-9a08-919c4c10827d.mspx?mfr=true\">look在这个链接如果要部署在IIS6 或这个如果是IIS7(我可以推荐麦克沃洛达尔斯基对一般的IIS7的任何信息博客)。
它应该是很简单的给你写一些批处理文件自动站点创建。
例如:

I can sugest you to take a look at this link if you are deploying on IIS6 or at this one if it is IIS7(I could recommend Mike Volodarsky's blog for any info on IIS7 in general). It should be quite simple for you to write some batch file to automate a site creation. Example:


  • IIS6:Iisweb将/创建C:\\罗马我的假期/ D www.reskit.com / dontstart

  • IIS7中:%windir%\\ SYSTEM32 \\ INETSRV \\ APPCMD添加站点/名称:MyNewSite /绑定:HTTP / *:81:/ physicalPath:C:\\的Inetpub \\ mynewsite

这篇关于我可以自动创建IIS中的.NET Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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