Phusion乘客5.1.12 + OSX 10.13 +服务器5.4 [英] Phusion Passenger 5.1.12 + OSX 10.13 + Server 5.4

查看:60
本文介绍了Phusion乘客5.1.12 + OSX 10.13 +服务器5.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从升级到10.13以来,我一直在使用Phusion Passenger时遇到问题.我已经读过几篇有关此问题根本原因的文章(坦率地说,大部分文章都在我头上),但给我的印象是,应该以旅客5.1.12解决该问题.尽管如此,它对我来说并没有,Apache崩溃并显示以下日志条目:

I've been having problems with Phusion Passenger since upgrading to 10.13. I've read several articles about the root cause of this issue (most of which are over my head, quite frankly) but I was under the impression that Passenger 5.1.12 was supposed to solve this problem. Nevertheless, it has not for me and Apache crashes with the following log entry:

httpd [31444]:objc [31444]:+ [__ NSCFConstantString initialize] 在调用fork()时在另一个线程中进行了处理.我们不可以 安全地调用它,或者在fork()子进程中忽略它.崩溃 反而.在objc_initializeAfterForkError上设置一个断点以进行调试.

httpd[31444]: objc[31444]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

任何指针将不胜感激!

推荐答案

如果您要坚持使用Apache,直到Apple修补其构建之前,

If you want to stick with Apache, until Apple patches their build, apparently your options current are to:

  • 使用非系统的Ap​​ache(因此没有Apple的补丁程序)
  • 将OBJC_DISABLE_INITIALIZE_FORK_SAFETY = YES环境变量设置为Apache 启动了plist(需要禁用SIP)
  • 如果您的应用程序可以,请在您的虚拟主机上添加PassengerHighPerformance 这样工作
  • 使用区分大小写的文件系统(需要全新安装macOS)
  • Use a non-system apache (so it doesn't have apple's patches)
  • Set the OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES env var to the apache launchd plist (requires disabling SIP)
  • Add PassengerHighPerformance on to your virtualhost if your app can work that way
  • Use a case-sensitive filesystem (requires a fresh install of macOS)

这些听起来都不对我特别有吸引力,因此我安装并迁移到了nginx(无论如何,我一直很有意义,现在已经有一段时间了.)

None of those sounded particularly attractive to me, so I installed and migrated over to nginx (I've been meaning to anyway, for some time now).

这篇关于Phusion乘客5.1.12 + OSX 10.13 +服务器5.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆