如何在IIS中的特定时间内关闭asp.net网站?

编程入门 行业动态 更新时间:2024-10-15 00:25:22
本文介绍了如何在IIS中的特定时间内关闭asp网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在IIS 8.1中托管了asp网站,它的工作正常。我需要在晚上10点到12点之间关闭特定网站以进行维护。可能吗?请给我这个问题的解决方案。 注意:需要关闭托管网站IIS WebServer中的特定时间。

Hi, I hosted the asp 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网站?

本文发布于:2023-11-27 13:34:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1638290.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:时间内   如何在   网站   IIS   asp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!