当我尝试在我的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,OS或特定硬件有关?任何解决方案?
答案 0 :(得分:0)
终止服务,然后重新开始。
$ ps -A | grep -i passenger | xargs kill -9
如果出现错误,请尝试使用sudo。
以防这个命令不起作用:
$ kill -9 $(pgrep Passenger)
通常我在另一个实例运行时遇到此错误。