简体   繁体   English

无法启动 Phusion 乘客看门狗

[英]Unable to start the Phusion Passenger watchdog

I am trying to run rails with passenger and nginx.我正在尝试使用乘客和 nginx 运行 rails。 Nginx wont redirect to my rails app instead proceeding to its default index.html page, and I got this error: Nginx 不会重定向到我的 rails 应用程序,而是继续到它的默认 index.html 页面,我收到了这个错误:

Unable to start the Phusion Passenger watchdog because it encountered the following error during startup: Cannot create a subdirectory inside instance registry directory /tmp: No such file or directory (errno=2) (-1: Unknown error)无法启动 Phusion Passenger 看门狗,因为它在启动过程中遇到以下错误:无法在实例注册表目录 /tmp 内创建子目录:没有此类文件或目录 (errno=2) (-1: 未知错误)

Try试试

echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
echo 1 | sudo tee /proc/sys/kernel/yama/ptrace_scope
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
sudo sh -c 'echo 0 > /proc/sys/kernel/yama/ptrace_scope'
sudo sh -c 'echo 1 > /proc/sys/kernel/yama/ptrace_scope'
sudo netstat -tnlp | grep :22222

good luck!祝你好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM