Centos7安裝Jekyll

安裝ruby

教程連接ruby

安裝RubyGems

yum install gem

使用如下命令替換 gems 默認源bash

# 添加 TUNA 源並移除默認源
gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/
# 列出已有源
gem sources -l
# 應該只有 TUNA 一個

安裝Jekyll

gem install jekyll bundler

建立運行一個服務

# Create a new Jekyll site at ./myblog
jekyll new myblog

# Change into your new directory
cd myblog

# Build the site on the preview server
bundle exec jekyll serve

# Now browse to http://localhost:4000

引用官網ui

相關文章
相關標籤/搜索