【问题标题】:nginx starting error with rails Phusion PassengerRails Phusion Passenger 的 nginx 启动错误
【发布时间】:2015-01-16 16:29:57
【问题描述】:

当我尝试在我的 vps 中启动 nginx 时,它显示以下错误。我正在使用 centos vps。

[sarath@vps111 ~]$ sudo service nginx restart
nginx: the configuration file /opt/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 helper agent: it seems to have crashed during startup for an unknown reason, with exit code 1 (-1: Unknown error)
nginx: configuration file /opt/nginx/conf/nginx.conf test is successful
Stopping nginx:                                            [  OK  ]
Starting nginx: nginx: [alert] Unable to start the Phusion Passenger watchdog because it encountered the following error during startup: Cannot create a Unix socket pair: Cannot allocate memory (errno=12) (-1: Unknown error)

此错误是否与 nginx、操作系统或硬件相关?有什么解决办法吗?

【问题讨论】:

    标签: ruby-on-rails nginx passenger


    【解决方案1】:

    杀死服务,然后重新启动。

    $ ps -A | grep -i passenger | xargs kill -9 
    

    如果遇到错误,请尝试使用 sudo。

    万一此命令不起作用,请执行以下操作:

    $ kill -9 $(pgrep Passenger)
    

    通常我在另一个实例运行时收到此错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-18
      • 1970-01-01
      • 1970-01-01
      • 2019-03-23
      • 1970-01-01
      • 2019-04-12
      相关资源
      最近更新 更多