簡體   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