<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>dfh511 (liqiang)</title>
    <link>https://ruby-china.org/dfh511</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>passenger+nginx passenger logging agent 错误</title>
      <description>&lt;p&gt;我在 centos 6.5 上部署了 passenger+nginx，用的方法是
gem install passenger
passenger-install-nginx-module
整个过程没有错误提示，然后我运行 sudo ~/nginx/sbin/nginx&lt;/p&gt;

&lt;p&gt;出现错误提示：
nginx: [alert] Unable to start the Phusion Passenger watchdog because it encountered the following error during startup: Unable to start the Phusion Passenger logging agent: it seems to have crashed during startup for an unknown reason, with exit code 1 (-1: Unknown error)&lt;/p&gt;

&lt;p&gt;运行 sudo ~/nginx/sbin/nginx -t
说明设置正确，但出现相同错误
nginx: the configuration file /home/lq/nginx/conf/nginx.conf syntax is ok
nginx: [alert] Unable to start the Phusion Passenger watchdog because it encountered the following error during startup: Unable to start the Phusion Passenger logging agent: it seems to have crashed during startup for an unknown reason, with exit code 1 (-1: Unknown error)
nginx: configuration file /home/lq/nginx/conf/nginx.conf test is successful&lt;/p&gt;

&lt;p&gt;请问这是什么原因？需要怎么处理？谢谢&lt;/p&gt;

&lt;p&gt;相关系统如下：
ruby 2.1.0
rails 4.2.1
gem 2.4.6
passenger 5.0.5
nginx 1.6.2&lt;/p&gt;</description>
      <author>dfh511</author>
      <pubDate>Fri, 27 Mar 2015 20:07:10 +0800</pubDate>
      <link>https://ruby-china.org/topics/24872</link>
      <guid>https://ruby-china.org/topics/24872</guid>
    </item>
    <item>
      <title>nginx 和 passenger 的 nginx.conf 配置问题请教</title>
      <description>&lt;p&gt;我按照 &lt;a href="https://ruby-china.org/wiki/mac-nginx-passenger-rails" rel="nofollow" target="_blank"&gt;https://ruby-china.org/wiki/mac-nginx-passenger-rails&lt;/a&gt; 的方法安装部署了 nginx 和 passenger，所有过程都成功了，可是在页面访问中有一个问题，就是 nginx.conf 文件，我按上文中的方法写就不行，必须要在 location 中加上                proxy_set_header Host localhost:3000;这一句才行（如下面所示），不然打开浏览器后就是 nginx 欢迎页，加上这一句后就可以到我 rails app 的首页来了，请问这是怎么回事？是不是必须要加这一句？可原文中都没有加呀，请指教！谢谢！
环境
centos 6.5
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
Rails 4.2.0
nginx version: nginx/1.6.2
passenger (5.0.5)&lt;/p&gt;

&lt;p&gt;server {
        listen       80;
        server_name  tq.local;
        root /home/developer/tq/public;
        passenger_enabled on;
        rails_env development;&lt;/p&gt;

&lt;p&gt;#charset koi8-r;&lt;/p&gt;

&lt;p&gt;#access_log  logs/host.access.log  main;&lt;/p&gt;

&lt;p&gt;location / {
            #root   html;
            #index  index.html index.htm;
                proxy_set_header Host localhost:3000;
        }&lt;/p&gt;</description>
      <author>dfh511</author>
      <pubDate>Thu, 26 Mar 2015 17:14:08 +0800</pubDate>
      <link>https://ruby-china.org/topics/24852</link>
      <guid>https://ruby-china.org/topics/24852</guid>
    </item>
  </channel>
</rss>
