IIS:如何在 Windows Server 2008 中禁用数据执行保护?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1209052/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 06:37:18  来源:igfitidea点击:

IIS: How to disable Data Execution Prevention in Windows Server 2008?

windowsiiswindows-server-2008dep

提问by Doug

I've been trying to disable DEP on my windows 2008 dev box and have not succeeded.

我一直试图在我的 Windows 2008 开发箱上禁用 DEP,但没有成功。

I've tried: System Properties->Performance Options->Data Execution Prevention->Turn on DEP for essential Windows programs and services only

我试过:系统属性->性能选项->数据执行保护->仅为基本的Windows程序和服务启用DEP

(still happens)

(仍然发生)

System Properties->Performance Options->Data Execution Prevention->Turn on DEP for all programs and services except those I select

系统属性->性能选项->数据执行保护->为除我选择的程序和服务之外的所有程序和服务启用 DEP

in this case, i tried to choose both inetinfo.exe and w3wp.exe in the c:\windows\system32\inetsrv\ folder, and when selected, I receive this error:

in this case, i tried to choose both inetinfo.exe and w3wp.exe in the c:\windows\system32\inetsrv\ folder, and when selected, I receive this error:

"You can not set DEP attributes on 64-bit executables".

“您不能在 64 位可执行文件上设置 DEP 属性”。

I'm sure that there is some memory leak somewhere - but that is a separate problem. I'm happy to live with it for a while in my development environment (in fact that is where I need to let it go so I can see it)

我确定某处存在一些内存泄漏 - 但这是一个单独的问题。我很高兴在我的开发环境中使用它一段时间(实际上这是我需要放手的地方,以便我可以看到它)

Any help would be appreciated!

任何帮助,将不胜感激!

Thx, Doug

谢谢,道格

采纳答案by gbn

The GUI does not show the 4 modes of DEP operation.

GUI 不显示 DEP 操​​作的 4 种模式。

You need to do it at boot time:Boot Parameters to Configure DEP and PAE

您需要在启动时进行:启动参数以配置 DEP 和 PAE

However, more info on the error message:

但是,有关错误消息的更多信息:

System DEP configuration settings apply only for 32-bit applications and processes when running on 32-bit or 64-bit versions of Windows. On 64-bit versions of Windows, if hardware-enforced DEP is available it is always applied to 64-bit processes and kernel memory spaces and there are no system configuration settings to disable it.

在 32 位或 64 位版本的 Windows 上运行时,系统 DEP 配置设置仅适用于 32 位应用程序和进程。在 64 位版本的 Windows 上,如果硬件强制 DEP 可用,它始终应用于 64 位进程和内核内存空间,并且没有系统配置设置来禁用它。

回答by Brian C.

Here is how to disable DEP at the command prompt:

以下是在命令提示符下禁用 DEP 的方法:

BCDEDIT /set {current} nx AlwaysOff

回答by Satish

On Windows Vista and later, DEP and PAE are enabled at boot time and are configured by setting values for the nx and pae parameters using the BCDEdit /set command.

在 Windows Vista 和更高版本上,DEP 和 PAE 在启动时启用,并通过使用 BCDEdit /set 命令设置 nx 和 pae 参数的值进行配置。

To disable DEP on Windows Server 2008 type the following on an elevated Command Line

要在 Windows Server 2008 上禁用 DEP,请在提升的命令行上键入以下内容

bcdedit /set nx AlwaysOff

回答by Satish

you would want to edit boot.ini and change a section contaning /noexecute=optin to just /execute

您想编辑 boot.ini 并将包含 /noexecute=optin 的部分更改为仅 /execute

回答by zdan

You should be able to turn DEP off in one of your BIOS settings.

您应该能够在您的 BIOS 设置之一中关闭 DEP。