从Win2008 R2删除IIS-有副作用吗?


14

这可能是一个过于宽泛的问题,但是使用搜索引擎时我找不到很好的答案...

我有一些服务器将通过 IIS 应用程序提供基于Web的服务。虽然我可以禁用IIS,但我想知道是否可以(应该?)删除它,以便从安全和维护的角度来看,减少了要担心的组件。

从Windows 2008 R2服务器删除IIS是否有任何管理或操作方面的副作用?

如果这样做,我将失去使用标准Microsoft工具管理服务器的任何能力吗?


1
您为Windows开发了Web服务,但是没有使用.NET?
MDMoore313 2015年

2
这些服务最初不是为Windows开发的,而是使用仍然乐于在Windows上运行而不会产生麻烦的工具。:)
马修·巴卡蒂斯

Answers:


17

如果您不使用IIS,则出于您提到的原因-维护和安全性,绝对应该删除它。

删除IIS的唯一效果是无法使用IIS。没有管理或操作方面的副作用-它没有像Internet Explorer那样扎根于操作系统中。

在我管理的250台Windows服务器中,只有不到10台安装了IIS组件,如果这样可以使您放心。如果仍然担心,可以在删除IIS之前始终停止IIS服务并验证服务器上是否没有中断。


我想补充一点,IIS的安装和随后的IIS删除对每个软件包使用独立的模块。除了IIS和与IIS相关的应用程序外,这些模块均未使用,因此通过卸载IIS破坏任何模块的机会可以忽略不计。
Reace

9

除非要托管网站,否则在任何Windows系统上都不需要IIS。唯一的例外是,如果您正在使用在Web服务(例如WSUS)上运行或提供它们(例如证书服务)的任何服务器角色。

但是,如果您实际上对IIS有任何依赖关系,则当您尝试删除该角色时,Windows本身会警告您。如果不是这种情况,则可以安全地将其删除(如果不需要,确实可以删除)。


-2

从WindowsServer2008R2取消IIS时要小心:

管理控制台”。如果发生以下情况:在目标“ [.NET Framework 3.5.1功能]上执行“ Remove-WindowsFeature”操作

import-module servermanager
PS C:\Users\****> remove-windowsfeature web-server -whatif
What if: Checking if running in 'WhatIf' Mode.
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] IIS 6 Management Console".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Tracing".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Windows Authentication".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] CGI".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] ISAPI Extensions".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] ISAPI Filters".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] IIS 6 Metabase Compatibility".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] IIS 6 WMI Compatibility".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] IIS 6 Scripting Tools".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Request Filtering".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Static Content Compression".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Dynamic Content Compression".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Directory Browsing".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] HTTP Errors".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Default Document".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] HTTP Logging".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Static Content".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] HTTP Redirection".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] .NET Extensibility".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] ASP.NET".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] ASP".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] IIS Management Scripts and Tools".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Management Service".
What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] IIS Management Console".
What if: Performing operation "Remove-WindowsFeature" on Target "[.NET Framework 3.5.1 Features] HTTP Activation".
What if: This server may need to be restarted after the removal completes.

Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
True    Maybe          Success   {}

1
所有这些模块都是实际的IIS依赖程序包,这些程序包向IIS添加了功能,但没有IIS则无法运行。换句话说,您要卸载添加到IIS的功能,而不是独立于IIS运行的功能。您没有卸载Windows身份验证,而是要卸载IIS的Windows身份验证。您没有卸载ASP,而是要卸载IIS的ASP模块。
Reace
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.