Ruby on rails nginx启动错误,轨道乘客
当我尝试在vps中启动nginx时,它显示以下错误。我正在使用centos vpsRuby 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
[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)
通常,当另一个实例正在运行时,我会遇到此错误