用户启动乘客(使用Nginx) [英] User to start Passenger (with Nginx)
本文介绍了用户启动乘客(使用Nginx)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我和Nginx一起有乘客.在nginx.conf中,我有一行:
I have Nginx with Passenger. In nginx.conf I have line:
user pass users;
和Nginx流程适用于'pass'用户,而Passenger *流程适用于'nobody'用户.
and Nginx process works on 'pass' user, but Passenger* processes work on 'nobody' user.
我可以独立运行乘客:
sudo passanger start -e production -p 80 --user=pass
如何通过自定义用户使用Nginx运行Passenger?
How can I run Passenger with Nginx with my custom user?
推荐答案
将以下内容放入 http 块中的 nginx.conf 中:
Put the following into your nginx.conf in the http block:
passenger_default_user custom_username;
passenger_default_group custom_group;
您可以在此处找到更多配置选项:
You can find more configuration options here:
http://modrails.com/documentation/Users%20guide%20Nginx. html#PassengerDefaultUser
这篇关于用户启动乘客(使用Nginx)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文