[Jekyll] Install and Serve Jekyll

less than 1 minute read

Install Ruby

rvm (CentOS)

$ yum install libyaml-devel glibc-headers autoconf gcc-c++ glibc-devel patch readline-devel zlib-devel libffi-devel openssl-devel automake libtool bison sqlite-devel

$ curl -sSL https://get.rvm.io | bash -s stable --ruby

// if fail with commands, execute commands
$ curl -sSL https://rvm.io/mpapis.asc | gpg --import -
$ curl -sSL https://get.rvm.io | bash -s stable --ruby

$ rvm version
$ ruby -v
$ gem -v

yum (CentOS, Fedora, RHEL)

  • CentOS, Fedora, RHEL은 yum 패키지 관리 시스템을 사용합니다.
$ sudo yum install ruby
$ ruby -v

Homebrew (macOS)

  • Homebrew는 macOS에서 일반적으로 사용되는 패키지 관리자입니다.
$ brew install ruby
$ ruby -v

Install Jekyll

$ gem install jekyll bundler
$ jekyll -v

Serve Jekyll

$ jekyll serve
or
$ bundle exec jekyll serve
or
$ bundle exec jekyll serve --host 0.0.0.0 --port 80

Issue

Leave a comment