简体   繁体   English

Nginx的Rails Phusion Passenger启动错误

[英]nginx starting error with rails Phusion Passenger

when i am trying to start nginx in my vps , it is showing below error . 当我尝试在vps中启动nginx时,它显示以下错误。 I am using centos vps. 我正在使用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)

Is this error is related to nginx , OS or hardware specific ? 此错误与nginx,操作系统或硬件有关吗? any solution ? 有什么办法吗?

Kill the service and then start it again. 终止服务,然后重新启动。

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

Try with sudo if you get errors. 如果遇到错误,请尝试使用sudo。

Just in case this command is not working do: 万一此命令不起作用,请执行以下操作:

$ kill -9 $(pgrep Passenger)

Usually I get this error when another instance is running. 通常,当另一个实例正在运行时,我会收到此错误。

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

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