从 Win2008 R2 中删除 IIS——副作用?

从 Win2008 R2 中删除 IIS——副作用?

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

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

从 Windows 2008 R2 服务器中删除 IIS 是否会对管理或操作产生任何副作用?

如果我这样做,我是否会失去使用标准 Microsoft 工具管理服务器的能力?

答案1

如果您不使用 IIS,您绝对应该将其删除,原因如上所述 - 维护和安全。

删除 IIS 的唯一影响是无法使用 IIS。没有管理或操作方面的副作用 - 它还没有像 Internet Explorer 那样根深蒂固地扎根于操作系统中。

在我管理的 250 多台 Windows 服务器中,只有不到 10 台安装了 IIS 组件,如果这能让您放心的话。如果您仍然担心,您可以随时停止 IIS 服务并验证服务器上没有出现任何问题,然后再删除 IIS。

答案2

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

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

答案3

从 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   {}

相关内容