我可以自动创建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你拿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