IIS停止并重新启动 [英] IIS Stop and Restart
本文介绍了IIS停止并重新启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
推荐答案
使用
System.Diagnostics.Process.Start("iisreset /stop"); 'Stop IIS
System.Diagnostics.Process.Start("iisreset"); 'Restart IIS
检查以下文章
在.NET中停止/启动IIS网站
如果发现有用,请接受答案:)
Check the following article
Stop/Start IIS Website in .NET
Accept the answer if found useful :)
是的,"iisreset"是可行的方法.您可以使用Process类来启动它.
与...类似的东西
Yeah ''iisreset'' is the way to go. You can use the Process class to kick it off.
Something along the lines of...
Process iisrestart = new Process();
iisrestart.StartInfo.FileName = "iisreset.exe";
iisrestart.StartInfo.Arguments = "COMPUTER_NAME";
iisrestart.Start();
这篇关于IIS停止并重新启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文