2014-11-19 2 views
0

내 vps에서 nginx를 시작하려고 할 때 오류가 아래에 표시됩니다. 나는 centos vps를 사용하고 있습니다.nginx 레일에서 시작 오류 Phusion Passenger

[[email protected] ~]$ 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

서비스를 종료했다가 다시 시작하십시오.

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

오류가 발생할 경우 sudo를 사용해보십시오.

그냥 경우에는이 명령이 작동하지 않습니다 할 일 : 다른 인스턴스가 실행 중일 때
$ kill -9 $(pgrep Passenger) 

보통 나는이 오류가 발생합니다.

+0

감사합니다 .its – user1703145

+0

다행 당신을 위해 일했다 :) –

관련 문제