Som standard installeres IIS 7.5 ikke på Windows Server® 2008 R2. Du kan installere IIS 7.5 ved hjælp af guiden Tilføj roller i Server Manager eller ved at bruge en kommandolinje.

Når du installerer Windows Server 2008 R2, kan du foretage en serverkerneinstallation, hvilket indebærer en minimal serverinstallation af Windows Server 2008 R2. Med denne form for installation installeres den traditionelle Windows-grænseflade f.eks. ikke, så du skal konfigurere serveren fra kommandoprompten.

Krav

Administratorrettigheder

Du skal være medlem af følgende IIS-administratorrolle eller -roller for at udføre denne procedure:

  • Webserveradministrator

Sådan installeres IIS 7.5 på Windows Server® 2008 R2

Du kan udføre denne procedure ved brug af brugergrænsefladen eller et script.

Brug af brugergrænsefladen
  1. Klik på Start, peg på Administrationsværktøjer, og klik på Server Manager.

  2. I Rolleoversigt skal du klikke på Tilføj roller.

  3. Brug guiden Tilføj roller til at tilføje webserverrollen.

Vigtigt!

Hvis du bruger guiden Tilføj roller til at installere IIS, får du standardinstallationen, der har et minimalt antal rolletjenester. Hvis du har brug for supplerende IIS-rolletjenester, såsom Programudvikling eller Sundhed og diagnosticering, skal du sørge for at markere de afkrydsningsfelter, der er knyttet til disse funktioner på siden Vælg rolletjenester i guiden.

Brug af et script
  • Skriv følgende kommando i et script:

    CMD /C START /w PKGMGR.EXE /l:log.etw /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementScriptingTools;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;WAS-WindowsActivationService;WAS-ProcessModel;IIS-FTPServer;IIS-FTPSvc;IIS-FTPExtensibility;IIS-WebDAV;IIS-ASPNET;IIS-NetFxExtensibility;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-ManagementService;MicrosoftWindowsPowerShell

Vigtigt!

Hvis du bruger dette script, får du den fulde IIS 7-installation, hvor alle tilgængelige funktionspakker installeres. Hvis der er funktionspakker, som du ikke behøver, skal du redigere scriptet, så du kun installerer de pakker, som du behøver.

Sådan installeres IIS 7.5 på Windows Server 2008 R2 ved hjælp af en serverkerneinstallation

Hvis du vil installere IIS 7-komponenter, som er baseret på .NET Framework, skal du først installere .NET Framework. De komponenter, som er baseret på .NET Framework, installeres ikke, hvis .NET Framework ikke er installeret.

Brug af et script til at installere .NET Framework og den fulde IIS 7.5-installation på serverkernen
  • Skriv følgende kommando i et script:

    CMD /C START /w PKGMGR.EXE /l:log.etw /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementScriptingTools;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;WAS-WindowsActivationService;WAS-ProcessModel;IIS-FTPServer;IIS-FTPSvc;IIS-FTPExtensibility;IIS-WebDAV;IIS-ASPNET;IIS-NetFxExtensibility;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-ManagementService;MicrosoftWindowsPowerShell;NetFx2-ServerCore;NetFx2-ServerCore-WOW64

Brug af et script til den fulde IIS 7.5-installation på serverkernen
  • Skriv følgende kommando i et script:

    CMD /C START /w PKGMGR.EXE /l:log.etw /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementScriptingTools;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;WAS-WindowsActivationService;WAS-ProcessModel;IIS-FTPServer;IIS-FTPSvc;IIS-FTPExtensibility;IIS-WebDAV;IIS-ASPNET;IIS-NetFxExtensibility;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-ManagementService;MicrosoftWindowsPowerShell

Vigtigt!

Hvis du bruger dette script, får du den fulde IIS-installation, som installerer alle tilgængelige funktionspakker til serverkernen. Hvis der er funktionspakker, som du ikke behøver, skal du redigere scriptet, så du kun installerer de pakker, som du behøver.

Brug af et script til en standardinstallation på serverkernen
  • Skriv følgende kommando i et script:

    start /w pkgmgr /l:log.etw /iu:IIS-WebServerRole;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI

Vigtigt!
  • Hvis du bruger dette script, får du en standardinstallation, som installerer et minimalt antal tilgængelige funktionspakker.

Se også


Indholdsfortegnelse