命令iisreset和iisreset /stop后跟之间有什么区别iisreset /start吗?
Answers:
将IISReset作为一组命令来帮助您管理IIS启动/停止等。
这意味着您需要指定选项(/switch)进行任何操作要执行的操作。
使用默认行为或使用默认开关/restart,iisreset因此您无需使用/start和两次运行命令/stop。
希望这可以澄清您的问题。供参考,输出iisreset /?为:
IISRESET.EXE (c) Microsoft Corp. 1998-2005 Usage: iisreset [computername] /RESTART Stop and then restart all Internet services. /START Start all Internet services. /STOP Stop all Internet services. /REBOOT Reboot the computer. /REBOOTONERROR Reboot the computer if an error occurs when starting, stopping, or restarting Internet services. /NOFORCE Do not forcefully terminate Internet services if attempting to stop them gracefully fails. /TIMEOUT:val Specify the timeout value ( in seconds ) to wait for a successful stop of Internet services. On expiration of this timeout the computer can be rebooted if the /REBOOTONERROR parameter is specified. The default value is 20s for restart, 60s for stop, and 0s for reboot. /STATUS Display the status of all Internet services. /ENABLE Enable restarting of Internet Services on the local system. /DISABLE Disable restarting of Internet Services on the local system.
iisresetvs net stop w3svc/有net start w3svc什么区别?
以下内容已针对IIS 8.5和Windows 8.1进行了测试。
从IIS 7开始,Windows建议通过重新启动IISnet stop/start。通过命令提示符(以Administrator身份):
> net stop WAS
> net start W3SVC
net stop WAS也将停止W3SVC。然后在启动时,net start W3SVC将WAS作为依赖项启动。
net stop iisadmin“服务名称无效”。仅重置就足够了w3svc吗?restting w3svc`和running之间有什么区别iisreset?
IISAdmin什么意义?重置w3svc似乎只能正常工作。
我知道这是一篇很老的文章,但是我想为以后会读的人指出以下几点:根据MS:
不要使用IISReset.exe工具来重新启动IIS服务。而是使用NET STOP和NET START命令。例如,要停止和启动万维网发布服务,请运行以下命令:
- NET STOP iisadmin / y
- NET START W3SVC
与使用IISReset.exe工具相比,使用NET STOP / NET START命令重新启动IIS服务有两个好处。首先,运行IISReset.exe命令时正在保存的IIS配置更改可能会丢失。其次,使用IISReset.exe可能很难确定发生此问题时停止哪些从属服务或服务失败。使用NET STOP命令停止每个独立的依赖服务将使您能够确定哪个服务无法停止,因此您可以相应地对其失败进行故障排除。
KB:https : //support.microsoft.com/en-ca/help/969864/using-iisreset-exe-to-restart-internet-information-services-iis-result
iisreset命令具有停止服务然后再启动它的默认操作。在/stop和/start开关只是做一个或另一个。