簡體   English   中英

Nginx的Rails Phusion Passenger啟動錯誤

[英]nginx starting error with rails Phusion 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 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)

通常,當另一個實例正在運行時,我會收到此錯誤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM