Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails nginx启动错误,轨道乘客_Ruby On Rails_Nginx_Passenger - Fatal编程技术网

Ruby on rails nginx启动错误,轨道乘客

Ruby on rails nginx启动错误,轨道乘客,ruby-on-rails,nginx,passenger,Ruby On Rails,Nginx,Passenger,当我尝试在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 fol

当我尝试在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、操作系统或特定于硬件相关?有什么解决方案吗?

请关闭该服务,然后重新启动

$ ps -A | grep -i passenger | xargs kill -9 
如果出现错误,请尝试使用sudo

如果此命令不起作用,请执行以下操作:

$ kill -9 $(pgrep Passenger)
通常,当另一个实例正在运行时,我会遇到此错误