如何在IIS中的特定时间内关闭asp.net网站? [英] how to down a asp.net website for a particular time in IIS?
本文介绍了如何在IIS中的特定时间内关闭asp.net网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在IIS 8.1中托管了asp.net网站,它的工作正常。我需要在晚上10点到12点之间关闭特定网站以进行维护。可能吗?请给我这个问题的解决方案。
注意:需要关闭托管网站IIS WebServer中的特定时间。
Hi,
I hosted the asp.net website in IIS 8.1, its working fine. I need to down the particular website between 10pm to 12 pm for maintenance purpose. Is it possible? Kindly give me the solution for this problem.
Note: Need to down the hosted website for the particular time in IIS WebServer.
推荐答案
您可以设置计划任务以在指定时间运行以下命令。
You could setup a scheduled task to run the following command at a specified time.
appcmd stop site /site.name:YOURSITENAMEHERE
此链接 [ ^ ]对你来说非常重要。
手动您必须转到IIS管理,在那里选择您的站点,右键单击它并选择停止。当您使用相同的步骤再次完成开始时。
This link[^] is very important to you.
Manually you must go to IIS MAnagement, select your SITE there, Right-Click on it and Select Stop. When you finish Start again using the same steps.
这篇关于如何在IIS中的特定时间内关闭asp.net网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文