- 安装ruby
- sudo apt update
- sudo apt install build-essential
- sudo apt install ruby ruby-dev
- 安装 jekyll
- gem sources –add http://gems.ruby-china.com/ –remove https://rubygems.org/
- gem -u
- gem sources -l
- sudo gem install jekyll
- sudo gem install bundler
- cd
BLOG_DIR
&& bundle install - build jekyll
- bundle exec jekyll s # bundle 执行
- bundle exec jekyll b -d “deploy” –config _config.yml && cd deploy && jekyll s # 发布到某个目录再执行
Jekyll博客环境搭建
This post is licensed under
CC BY 4.0
by the author.