Ruby 更新jekyll站点

Ruby 更新jekyll站点,ruby,bash,web,jekyll,rbenv,Ruby,Bash,Web,Jekyll,Rbenv,我正在尝试更新一个jekyll博客,想先在浏览器上查看它。我运行了jekyll serve,得到了: rbenv: jekyll: command not found The `jekyll' command exists in these Ruby versions: 2.1.0 为什么会出现这个错误?我还运行了bundle exec jekyll service: Could not locate Gemfile or .bundle/ directory 如果有帮助,这是echo$P

我正在尝试更新一个jekyll博客,想先在浏览器上查看它。我运行了
jekyll serve
,得到了:

rbenv: jekyll: command not found

The `jekyll' command exists in these Ruby versions:
2.1.0
为什么会出现这个错误?我还运行了bundle exec jekyll service:

Could not locate Gemfile or .bundle/ directory
如果有帮助,这是echo$PATH的结果

/Users/BLAH/.rbenv/shimmes:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/aa/npm/bin:/usr/local/share/npm/bin

如果这也有帮助,这是rbenv版本的结果

  system
  1.9.3-p551
  2.0.0-p353
  2.0.0-p598
  2.1.0
  * 2.1.4 (set by /Users/BLAH/.rbenv/version)

我怎样才能使
jekyll发球
再次发挥作用

您在使用Ruby 2.1.0时安装了Jekyll gem,但随后切换到2.1.4,它的gemset中没有Jekyll

您要么需要在正在与
gem install Jekyll
一起使用的gemset中安装Jekyll,要么需要使用
rbenv local 2.1.0
切换到另一个Ruby

我还运行了bundle exec jekyll service 结果是: 找不到文件或.bundle/目录

你需要启动服务器。我用以下方法解决了问题:

$ jekyll serve
# => A development server will run at http://localhost:4000/
# Auto-regeneration: enabled. Use `--no-watch` to disable.

$ jekyll serve --detach
# => Same as `jekyll serve` but will detach from the current terminal.
#    If you need to kill the server, you can `kill -9 1234` where "1234" is the PID.
#    If you cannot find the PID, then do, `ps aux | grep jekyll` and kill the instance.

@谢谢你的回答。如果你想回答这个问题,我会接受它,因为它是第一个答案。不需要@user27307254534534534543675765接受乔丹完整正确的答案。@xlembouras,好的。谢谢你的慷慨@乔登,嘿,谢谢你的解释。我接受xlembouras的评论作为答案,如果它变成了一个,因为它是第一个。不过我真的很感谢你的解释。