[英]Unicorn and nginx (13: Permission denied)
I am starting app with ngnix and unicorn, but in log nginx got this error 我正在用ngnix和独角兽启动应用程序,但在日志中nginx收到此错误
*1 connect() to unix:/tmp/unicorn.sock failed (13: Permission denied) while connecting to upstream, client: 181.52.249.209, server: lovebeeroficial.com
I found similar error but Dont work for me, the file have all permission 我发现了类似的错误,但对我不起作用,该文件拥有所有权限
I try this Nginx failed (13: Permission denied) when start rails with unicorn and Nginx getting Permission denied when connecting to Unicorn 我尝试使用unicorn启动rails时将此Nginx失败(13:权限被拒绝),并且Nginx在连接到Unicorn时获得权限被拒绝
-rwxrwxrwx. 1 azureuser azureuser 1 Feb 24 07:43 unicorn.sock
-rwxrwxrwx. 1 azureuser azureuser 1 Feb 24 07:43 unicorn.sock
-rwxrwxrwx. 1 azureuser azureuser 1 Feb 24 07:43 unicorn.sock
- it doesn't looks like unix socket. -rwxrwxrwx. 1 azureuser azureuser 1 Feb 24 07:43 unicorn.sock
它看起来不像unix套接字。
srwxrwxrwx. 1 azureuser azureuser 1 Feb 24 07:43 unicorn.sock
srwxrwxrwx. 1 azureuser azureuser 1 Feb 24 07:43 unicorn.sock
- it should look like this. srwxrwxrwx. 1 azureuser azureuser 1 Feb 24 07:43 unicorn.sock
它应该像这样。
You need to check where your unicorn stores socket really. 您需要检查您的独角兽真正在哪里存储套接字。
If you sure unicorn use /tmp
, then rm -rf /tmp/unicorn.sock
and restart unicorn. 如果确定unicorn使用
/tmp
,则rm -rf /tmp/unicorn.sock
并重新启动unicorn。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.