无法启动Unicorn,Rails和Nginx - 没有这样的进程错误

时间:2017-10-04 13:47:49

标签: ruby-on-rails ubuntu nginx unicorn

我跟着Digital Ocean's tutorial关于如何设置Unicorn,Rails和Nginx,但无法启动Unicorn。我尝试了两种选择:

  1. 安装所有内容,在教程中配置nginx,然后手动运行
  2. bundle exec unicorn -E development -c config/unicorn.rb

    1. 通过将以下行添加到config / unicorn.rb

      来独立运行unicorn

      listen 80

    2. Unicorn不会在两种情况下启动,消息是:master无法启动,请检查stderr以获取详细信息。

      独角兽的Stderr.log说:unicorn / http_server.rb:715 - 没有这样的过程

      如何解决这个问题?我尝试了堆栈溢出,git和其他教程的大量答案,但似乎没有任何帮助。

      提前致谢。

1 个答案:

答案 0 :(得分:0)

最后修复它:我必须以root身份运行独角兽。由于日志中的访问错误而实现了这一点。这是启动独角兽的命令:

rvmsudo bundle exec unicorn -E development -c config/unicorn.rb 

希望它有所帮助。