IIS:如何从命令行取消部署/删除/删除webapp? [英] IIS: how to undeploy/delete/remove a webapp from command line?
本文介绍了IIS:如何从命令行取消部署/删除/删除webapp?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设在本地IIS服务器上部署了一个webapp。当我需要删除/取消部署它,我可以去IIS管理器,右键单击该应用程序,然后选择删除应用程序和内容 - et voila。但是,我需要从命令行做同样的 - 怎么样?可以假定应用程序的名称是已知的。
Suppose there's a webapp deployed on local IIS server. When I need to remove/undeploy it, I can go to IIS Manager, right-click on the app, and then select "Delete application and content" - et voila. But, I need to do the same from the command line - how? It can be assumed that the name of the application is known.
也许这可以通过MSDeploy做些什么?
Maybe this can be done via MSDeploy somehow?
推荐答案
这是它的作用:
"C:\Program Files\IIS\Microsoft Web Deploy\msdeploy" -verb:delete -dest:apphostconfig="Default Web Site/<webapp_name>"
这篇关于IIS:如何从命令行取消部署/删除/删除webapp?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文