To start a local server (http://localhost:4000) in a folder with Jekyll Gemfile

bundle exec jekyll serve

Update gems

bundle update

To install Jekyll, ruby, and all gems:

https://help.github.com/en/articles/setting-up-your-github-pages-site-locally-with-jekyll