简体   繁体   English

乘客和Nginx不会开始

[英]Passenger and Nginx wont start

I've got a brand new Ubuntu 13.04 server with fresh installs and updates of RVM, ruby 1.9.2 and my app. 我有一个全新的Ubuntu 13.04服务器,其中包含RVM,ruby 1.9.2和我的应用程序的全新安装和更新。 I did a gem install passenger and that ran fine. 我做了一个宝石安装乘客,并运行良好。 When I try to start passenger via 当我尝试通过出发乘客时

passenger start

I get 我懂了

*** 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

My nginx binary appears to be in 我的Nginx二进制文件似乎在

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

and is precompiled with the prefix flag set to /tmp I do not appear to have an nginx.conf file anywhere on the system. 并且已将前缀标志设置为/ tmp进行了预编译,我在系统上的任何地方似乎都没有nginx.conf文件。 I put one in /etc/nginx and one in /tmp/nginx that only has the directive 我在/ etc / nginx中放了一个,在/ tmp / nginx中放了一个,只有指令

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

but trying to restart I get the same error and I belive the conf file is ignored. 但是尝试重新启动时,我遇到相同的错误,并且我相信conf文件将被忽略。 There seems to be no easy way to configure nginx if installed via passenger. 如果通过乘客安装,似乎没有简单的方法来配置nginx。 Is there an easy way to do this or should I just switch back to mongrel? 有没有简单的方法可以做到这一点,还是我应该切换回杂种?

This problem has been fixed in Phusion Passenger 2 days ago. 此问题已 2天前的Phusion Passenger中修复 You can apply the patch yourself, or wait for version 4.0.4. 您可以自己应用补丁,也可以等待版本4.0.4。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM