繁体   English   中英

独角兽+ NGINX:无法启动独角兽

[英]Unicorn + NGINX: cannot start unicorn

我刚刚开始玩弄Unicorn和NGINX的设置(任何完善的参考资料将不胜感激。我已经在Google上爬行了三天,并编译了使服务器在机架空间中运行所需的内容)。

继续我的问题。 看来,我已经正确地设置了NGINX以指向我的rails应用程序的目录。 它能够显示500错误页面。 现在我正在开始独角兽

unicorn_rails -c /home/deployer/public_html/app/config/unicorn.rb

这给了我这个错误

/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/unicorn-4.1.1/lib/unicorn/socket_helper.rb:144:in `initialize': Permission denied - bind(2) (Errno::EACCES)
    from /home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/unicorn-4.1.1/lib/unicorn/socket_helper.rb:144:in `new'
    from /home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/unicorn-4.1.1/lib/unicorn/socket_helper.rb:144:in `bind_listen'

我正在尝试在端口80上启动应用程序,并且我知道我需要超级用户权限才能绑定到低于1024的任何内容。但是当我尝试使用sudo时,它给了我

sudo: unicorn_rails: command not found

任何帮助,将不胜感激!

尝试rvmsudo unicorn_rails -c /home/deployer/public_html/app/config/unicorn.rb

暂无
暂无

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

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