【问题标题】:Passenger and Nginx wont start乘客和 Nginx 无法启动
【发布时间】:2013-05-26 19:20:21
【问题描述】:

我有一个全新的 Ubuntu 13.04 服务器,其中包含 RVM、ruby 1.9.2 和我的应用程序的全新安装和更新。我做了一个 gem install 乘客,运行良好。当我尝试通过

启动乘客时
passenger start

我明白了

*** ERROR ***
Could not start Passenger Nginx core:
nginx: [alert] could not open error log file: open()
"/tmp/passenger-standalone.14080/logs/error.log" failed (2: No such file or directory)
2013/05/26 15:11:51 [emerg] 14091#0: could not build the types_hash, you should
increase either types_hash_max_size: 1024 or types_hash_bucket_size: 32
Stopping web server... done

我的 nginx 二进制文件似乎在

/home/gary/.passenger/standalone/4.0.3/nginx-1.4.1-x86_64-linux-gcc4.7.3-1002/nginx

并且预编译的前缀标志设置为 /tmp 我似乎在系统上的任何地方都没有 nginx.conf 文件。我在 /etc/nginx 中放了一个,在 /tmp/nginx 中放了一个,只有指令

error_log  /var/log/nginx/error.log;

但是尝试重新启动我得到了同样的错误,我相信 conf 文件被忽略了。如果通过乘客安装,似乎没有简单的方法来配置 nginx。有没有简单的方法可以做到这一点,还是我应该切换回杂种?

【问题讨论】:

  • 这听起来像是权限问题。尝试以 root 身份运行以进行检查。

标签: ruby-on-rails nginx passenger


【解决方案1】:

此问题已在 2 天前fixed in Phusion Passenger。您可以自己应用补丁,或等待 4.0.4 版本。

【讨论】:

    猜你喜欢
    • 2014-08-01
    • 1970-01-01
    • 2018-05-16
    • 2012-07-10
    • 1970-01-01
    • 2011-09-07
    • 2010-12-14
    • 2010-12-15
    • 1970-01-01
    相关资源
    最近更新 更多