nginx error: (13: Permission denied) while connecting to upstream)

自闭症网瘾萝莉.ら 提交于 2019-12-05 11:05:02
Victor Young

I got the same error with you, I got a solution but don't know should it be right. Change the first line of file /etc/nginx/nginx.conf

user www-data;
to
user root;

Then restart the nginx using:

service nginx restart OR systemctl restart nginx

Works well!

Take a look at your puma.error.log file for your application.

Mine was complaining about a small syntax error in a config block on production environment.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!