“reinicie o IIS” Respostas de código

reinicie o IIS

iisreset /stop /timeout:60
taskkill /F /FI "SERVICES eq was"
iisreset /start
Frightened Falcon

IIS reinicie o comando CFROM Promt Windows

iisreset /noforce
Brave Badger

reinicie o IIS

iisreset /stop /timeout:60; taskkill /F /FI "SERVICES eq was"; iisreset /start
Horrible Hornet

reinicie o IIS

appcmd recycle apppool <poolname>
Horrible Hornet

IIS reinicie C#

public static void RestartService(string serviceName, int timeoutMilliseconds)
{
  ServiceController service = new ServiceController(serviceName);
  try
  {
    int millisec1 = Environment.TickCount;
    TimeSpan timeout = TimeSpan.FromMilliseconds(timeoutMilliseconds);

    service.Stop();
    service.WaitForStatus(ServiceControllerStatus.Stopped, timeout);

    // count the rest of the timeout
    int millisec2 = Environment.TickCount;
    timeout = TimeSpan.FromMilliseconds(timeoutMilliseconds - (millisec2-millisec1));

    service.Start();
    service.WaitForStatus(ServiceControllerStatus.Running, timeout);
  }
  catch
  {
    // ...
  }
}
Red Team

Como redefinir IIS

iis reset
Frightened Fly

Respostas semelhantes a “reinicie o IIS”

Perguntas semelhantes a “reinicie o IIS”

Procure respostas de código populares por idioma

Procurar outros idiomas de código