1

我在使用 mamp/mamp pro 的 Mac 上。

当我打开 apc 脚本时,我不断收到此警告

“apc-6.php” is a script application downloaded from the Internet. 
Are you sure you want to open it?

我下载并设置了其中一个脚本来测试 apc 是否适合我 http://pecl.php.net/package/APC

当我点击带有上述文本的消息框时,会显示。是什么原因造成的,我该如何阻止它?这很烦人。

谢谢

4

3 回答 3

0

输入终端:

默认写入 com.apple.LaunchServices LSQuarantine -bool NO

或在属性列表编辑器中打开 /User/[username]/Library/Preferences/com.apple.LaunchServices.plist 并取消选中“LSQuarantine”。

然后重新启动计算机。可能有一种方法可以从命令提示符重新加载 LaunchServices,但可以肯定的是重新启动。

此操作应附带一个严肃的免责声明,因为它绕过了 OS X 安全功能,但在我运行 Snow Leopard 并收到这些消息的 9 个月中,我从未有过未经授权的消息。

于 2010-07-21T00:44:59.310 回答
0

Check out these links:

Seems like there's no easy solution. But I think in snow leopard should be an option to disable the message for further events.

于 2010-06-18T05:51:41.170 回答
0

每当 Firefox 没有收到内容类型标头时,Firefox 都会触发下载对话框,这在 php 段错误时会发生。MAMP 附带默认启用的 Zend 加速器,当与 APC 结合使用时,会导致段错误。如果你跟踪你的 apache 错误日志,你可能会看到这种情况——段错误记录在那里。

在 MAMP 配置中禁用 zend 加速器。

于 2010-06-18T06:22:39.500 回答