Giter Site home page Giter Site logo

zhengtianbao.github.io's Introduction

Zhengtianbao's Blog

博客样式风格已替换为:Chirpy (v6.5.3)

本地运行环境配置

1. 安装 ruby

注意:ubuntu 20.04 环境下用 apt 直接安装的 ruby 版本过低,需要通过 Rbenv 管理工具安装高版本

安装依赖

sudo apt install build-essential zlib1g-dev libssl-dev

安装 Rbenv

git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc

安装 ruby-build

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

注意:如果是 zsh 环境,则将以上步骤中的 .bashrc 替换为 .zshrc

安装 ruby

rbenv install --list
rbenv install 3.1.4
rbenv global 3.1.4

安装 jekyll

gem install jekyll bundler

2. 运行

git clone https://github.com/zhengtianbao/zhengtianbao.github.io.git

安装依赖

bundle install
bundle

启动本地服务

bundle exec jekyll server

访问地址: http://127.0.0.1:4000

zhengtianbao.github.io's People

Contributors

zhengtianbao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.