Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Linux/Install Jekyll on Amazon Linux 2

February 2, 2021

Install Jekyll on Amazon Linux 2

Here’s the script to install Jekyll on Amazon Linux 2.

#!/bin/bash
sudo hostnamectl set-hostname jekyll
sudo yum update -y
sudo amazon-linux-extras install ruby2.4 -y
sudo yum install ruby ruby-devel -y
sudo yum groupinstall "Development Tools" -y
sudo gem install bundler 
sudo gem install rdoc
sudo gem update --system
sudo gem install jekyll
jekyll new myblog

#!/bin/bash sudo hostnamectl set-hostname jekyll sudo yum update -y sudo amazon-linux-extras install ruby2.4 -y sudo yum install ruby ruby-devel -y sudo yum groupinstall "Development Tools" -y sudo gem install bundler sudo gem install rdoc sudo gem update --system sudo gem install jekyll jekyll new myblog

To start the Jekyll server.

cd mysite
jekyll build
jekyll serve --host 0.0.0.0

cd mysite jekyll build jekyll serve --host 0.0.0.0

Open your browser and point it to the external IP of your instance on port 4000.

http://xxx.xxx.xxx.xxx:4000

http://xxx.xxx.xxx.xxx:4000

You may to edit your security group to allow ingress 4000 from 0.0.0.0/0.

Filed Under: Linux Tagged With: amazon 2, bundler, gems, install, jekyll, ruby

Have content delivered to your mail. Subscribe below.

About Me

I'm Ulysses, a Cloud Engineer at Cardinal Health based in Columbus, Ohio. I’m a certified AWS Solutions Architect. This website is my way of documenting the things I have learned in the Cloud. When off the grid, I enjoy riding my electric skateboard. I have surfed, snowboarded and played the saxophone in the past. I hope you will find this site helpful. It's powered by WordPress and hosted in AWS LightSail.

  • Cloud
  • Linux
  • Git

Copyright © 2012–2021