用命令行安装IIS(pkgmgr版)
生活随笔
收集整理的這篇文章主要介紹了
用命令行安装IIS(pkgmgr版)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
目錄
一.安裝IIS7
1.基礎(chǔ)安裝IIS7
2.完整安裝IIS7
3.卸載IIS7
二.安裝IIS8
1.完整安裝IIS8
2.卸載IIS8
三.附錄
1.IIS7安裝場景對照表
一.安裝IIS7
適用于win 7,win server 2008
1.基礎(chǔ)安裝IIS7
比如跑一下靜態(tài)頁面
@echo off echo 正在添加IIS功能,這可能需要幾分鐘時間...start /w pkgmgr /iu:IIS-WebServerRole;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPIecho.%errorlevel% pause2.完整安裝IIS7
比如跑ASP.NET
@echo off echo 正在添加IIS功能,這可能需要幾分鐘時間...start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;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-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;IIS-LegacySnapIn;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPIecho.%errorlevel% pause網(wǎng)上傳的,很多缺少“IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;”,這里是最完整的,在win7和win2008r2上驗證通過
3.卸載IIS7
@echo off echo 正在卸載IIS功能,這可能需要幾分鐘時間...start /w pkgmgr /uu:IIS-WebServerRole;WAS-WindowsActivationService;WAS-ProcessModelecho.%errorlevel% pause這樣就好,別太聰明。我試過自制的“完整卸載”命令,結(jié)果卸載完按要求重啟電腦后藍屏了,再重啟也好不了。按上面的做就是對的。
二.安裝IIS8
適用于win 8,win server 2012
1.完整安裝IIS8
@echo off echo 正在添加IIS8功能,這可能需要幾分鐘時間... start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;NetFx4Extended-ASPNET45;IIS-ASP;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-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;IIS-LegacySnapIn;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI echo.%errorlevel% echo IIS8安裝成功! pause2.卸載IIS8
@echo off echo 正在卸載IIS功能,這可能需要幾分鐘時間...start /w pkgmgr /uu:IIS-WebServerRole;WAS-WindowsActivationService;WAS-ProcessModelecho.%errorlevel% pause三.附錄
1.IIS7安裝場景對照表
Default Server Install Components
| Server Manager | Update Name |
| Static Content | IIS-StaticContent |
| Default Document | IIS-DefaultDocument |
| Directory Browsing | IIS-DirectoryBrowsing |
| HTTP Errors | IIS-HttpErrors |
| HTTP Logging | IIS-HttpLogging |
| Logging Tools | IIS-LoggingLibraries |
| Request Monitor | IIS-RequestMonitor |
| Request Filtering | IIS-RequestFiltering |
| Static Content Compression | IIS-HttpCompressionStatic |
| IIS Management Console | IIS-ManagementConsole |
ASP.NET Workload Server Options
| Server Manager | Update Name |
| Static Content | IIS-StaticContent |
| Default Document | IIS-DefaultDocument |
| Directory Browsing | IIS-DirectoryBrowsing |
| HTTP Errors | IIS-HttpErrors |
| HTTP Logging | IIS-HttpLogging |
| Logging Tools | IIS-LoggingLibraries |
| Request Monitor | IIS-RequestMonitor |
| Request Filtering | IIS-RequestFiltering |
| Static Content Compression | IIS-HttpCompressionStatic |
| IIS Management Console | IIS-ManagementConsole |
| ASP.NET | IIS-ASPNET |
| .NET Extensibility | IIS-NetFxExtensibility |
| ISAPI Filters | IIS-ISAPIFilter |
| ISAPI Extensions | IIS-ISAPIExtensions |
Class ASP Workload Server Options
| Server Manager | Update Name |
| Static Content | IIS-StaticContent |
| Default Document | IIS-DefaultDocument |
| Directory Browsing | IIS-DirectoryBrowsing |
| HTTP Errors | IIS-HttpErrors |
| HTTP Logging | IIS-HttpLogging |
| Logging Tools | IIS-LoggingLibraries |
| Request Monitor | IIS-RequestMonitor |
| Request Filtering | IIS-RequestFiltering |
| Static Content Compression | IIS-HttpCompressionStatic |
| IIS Management Console | IIS-ManagementConsole |
| ASP | IIS-ASP |
| ISAPI Extensions | IIS-ISAPIExtensions |
?
FastCGI Workload Server Options
| Server Manager | Update Name |
| Static Content | IIS-StaticContent |
| Default Document | IIS-DefaultDocument |
| Directory Browsing | IIS-DirectoryBrowsing |
| HTTP Errors | IIS-HttpErrors |
| HTTP Logging | IIS-HttpLogging |
| Logging Tools | IIS-LoggingLibraries |
| Request Monitor | IIS-RequestMonitor |
| Request Filtering | IIS-RequestFiltering |
| Static Content Compression | IIS-HttpCompressionStatic |
| IIS Management Console | IIS-ManagementConsole |
| CGI | IIS-CGI |
IIS Managed Modules and .NET Extensibility Server Workload
| Server Manager | Update Name |
| Static Content | IIS-StaticContent |
| Default Document | IIS-DefaultDocument |
| Directory Browsing | IIS-DirectoryBrowsing |
| HTTP Errors | IIS-HttpErrors |
| HTTP Logging | IIS-HttpLogging |
| Logging Tools | IIS-LoggingLibraries |
| Request Monitor | IIS-RequestMonitor |
| Request Filtering | IIS-RequestFiltering |
| Static Content Compression | IIS-HttpCompressionStatic |
| IIS Management Console | IIS-ManagementConsole |
| .NET Extensibility | IIS-NetFxExtensibility |
Full Server Install Components
| Server Manager | Update Name |
| Internet Information Services | IIS-WebServerRole |
| World Wide Web Services | IIS-WebServer |
| Common HTTP Features | IIS-CommonHttpFeatures |
| Static Content | IIS-StaticContent |
| Default Document | IIS-DefaultDocument |
| Directory Browsing | IIS-DirectoryBrowsing |
| HTTP Errors | IIS-HttpErrors |
| HTTP Redirection | IIS-HttpRedirect |
| Application development | IIS-ApplicationDevelopment |
| ASP.NET | IIS-ASPNET |
| .NET Extensibility | IIS-NetFxExtensibility |
| ASP | IIS-ASP |
| CGI | IIS-CGI |
| ISAPI Extensions | IIS-ISAPIExtensions |
| ISAPI Filters | IIS-ISAPIFilter |
| Ser-Side Includes | IIS-ServerSideInclude |
| Health and diagnostics | IIS-HealthAndDiagnostics |
| HTTP Logging | IIS-HttpLogging |
| Logging Tools | IIS-LoggingLibraries |
| Request Monitor | IIS-RequestMonitor |
| Tracing | IIS-HttpTracing |
| Custom Logging | IIS-CustomLogging |
| ODBC Logging | IIS-ODBCLogging |
| Security | IIS-Security |
| Basic Authentication | IIS-BasicAuthenticaition |
| Windows Authentication | IIS-WindowsAuthentication |
| Digest Authentication | IIS-DigestAuthentication |
| Client Certificate Mapping Authentication | IIS-ClientCertificateMappingAuthentication |
| IIS Client Certificate Mapping Authentication | IIS-IISCertificateMappingAuthentication |
| URL Authorization | IIS-URLAuthorization |
| Request Filtering | IIS-RequestFiltering |
| IP and Domain Restrictions | IIS-IPSecurity |
| Performance | IIS-Performance |
| Static Content Compression | IIS-HttpCompressionStatic |
| Dynamic Content Compression | IIS-HttpCompressionDynamic |
| Management Tools | IIS-WebServerManagementTools |
| IIS Management Console | IIS-ManagementConsole |
| IIS Management Scripts and Tools | IIS-ManagementScriptingTools |
| Management Service | IIS-ManagementService |
| IIS6 Management Compatibility | IIS-IIS6ManagementCompatibility |
| IIS Metabase Compatibility | IIS-Metabase |
| IIS 6 WMI Compatibility | IIS-WMICompatibility |
| IIS 6 Scripting Tools | IIS-LegacyScripts |
| IIS 6 Management Console | IIS-LegacySnapin |
| FTP Publishing Service | IIS-FTPPublishingService |
| FTP Server | IIS-FTPServer |
| FTP Management Console | IIS-FTPManagemnt |
| Windows Process Activation service | WAS-WindowsActivationService |
| Process Model | WAS-ProcessModel |
| .NET Environment | WAS-NetFxEnvironment |
| Configiuration APIs | WAS-ConfigurationAPI |
總結(jié)
以上是生活随笔為你收集整理的用命令行安装IIS(pkgmgr版)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: flutter需要定义product f
- 下一篇: 出版了两本实体书,写了9本开源电子书,还