Unicorn + NGINX:无法启动独角兽

den*_*iss 2 ruby-on-rails nginx unicorn ruby-on-rails-3

我刚开始玩Unicorn和NGINX设置(任何全面的参考都会受到赞赏.我已经在google上爬了三天并编译了我的服务器在rackspace中运行所需的内容).

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

unicorn_rails -c /home/deployer/public_html/app/config/unicorn.rb
Run Code Online (Sandbox Code Playgroud)

它给了我这个错误

/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'
Run Code Online (Sandbox Code Playgroud)

我试图在端口80上启动应用程序,我知道我需要超级用户权限绑定到低于1024的任何东西.但是当我尝试使用sudo它给了我

sudo: unicorn_rails: command not found
Run Code Online (Sandbox Code Playgroud)

任何帮助,将不胜感激!

Eze*_*lin 5

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