How to Install Jekyll and Launch a New Site

In this article, we will cover a basic installation of the Jekyll static site generator. Then, we will create and launch the default Jekyll site, which you can later customize.

To learn more about what Jekyll is and how you can use it, check out the previous article regarding What is Jekyll?

Don’t have time to read our full article? Watch our walk-through video.

Moving Forward with a New Jekyll Installation

This tutorial starts on the command line, and you will need to revisit the command line quite often throughout using Jekyll. But that is no reason to fear! You may find the commands involved are lightweight and easy to remember. After a few practice runs, you will have them down.

Follow along with the steps below to install Jekyll and launch a new site.

  1. Open your favorite Terminal client.
  2. Type sudo gem install Jekyll. (Sudo privilege may or not be required depending on your user configuration.)
    install Jekyll sudo
  3. Provide sudo password.
    jekyll sudo password
  4. Change directory to the location where you want your new site files to reside. For example, if you want to save your site files to the desktop, type cd Desktop.
    jekyll directory
  5. To create your site type jekyll new and the desired name for the directory. For example, jekyll new example.
    create with jekyll new
  6. Change directories into the location of the site files. For example, type cd example.
    jekyll change directories
  7. To make sure everything was installed properly, launch the example site by typing jekyll serve.
    jekyll launch example site
  8. To see the site, visit this address in your browser: https://127.0.0.1:4000. Alternatively, you can browse to localhost:4000.
    jekyll active sample site

Well done on completing this tutorial! You can now install and launch a Jekyll site. Stay tuned, as we work deeper into Jekyll to customize our site.

Learn more from our Managed VPS Hosting Product Guide.

CM
Christopher Maiorana Content Writer II

Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.

More Articles by Christopher

Comments

It looks like this article doesn't have any comments yet - you can be the first. If you have any comments or questions, start the conversation!

Was this article helpful? Let us know!