Sponsored Link
Requirements
Installing Jekyll is easy and straight-forward, but there are a few requirements you’ll need to make sure your system has before you start.
Ruby (including development headers, v1.9.3 or above for Jekyll 2 and v2 or above for Jekyll 3)
RubyGems
Linux, Unix, or Mac OS X
NodeJS, or another JavaScript runtime (Jekyll 2 and earlier, for CoffeeScript support).
Python 2.7 (for Jekyll 2 and earlier)
Install Jekyll on Ubuntu 16.10 Server
Preparing your system
You need to install ruby using the following command
sudo apt-get install ruby-full ruby-bundler
Install Jekyll package using gem
sudo gem install jekyll
After the installation you can check jekyll version installed using the following command
jekyll -v
Output
jekyll 3.2.1
Creating New website
jekyll new myblog
This will create myblog directory in the existing location
$ cd myblog
The current folder will be generated into ./_site using the following command
~/myblog $ bundle install
Start jekyll server
~/myblog $ bundle exec jekyll serve
Auto-regeneration: enabled for ‘/home/myblog'
Configuration file: /home/myblog/_config.yml
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
Now browse to http://localhost:4000
The ouput looks similar to the following
You can read Jekyll documentation from here for more detailed instructions.