2013-05-26 71 views
1

我有一个全新的Ubuntu 13.04服务器,全新安装并更新了RVM,ruby 1.9.2和我的应用程序。我做了一个宝石安装乘客,运行良好。当我尝试通过乘客和Nginx不会启动

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。有没有一个简单的方法来做到这一点,或者我应该只是切换回杂种?

+0

这听起来像许可问题。尝试以root身份运行它来检查。 – Sirupsen

回答