zoukankan      html  css  js  c++  java
  • jekyll安装及使用

    清除旧版Ruby,若存在

    yum remove ruby

    若为源码,使用如下命令

    cd <your-ruby-source-path>
    make uninstall

    下面开始安装Ruby

    一、下载Ruby源码包

    wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.7.tar.gz

    二、解压安装Ruby

    tar zxvf ruby-2.1.7.tar.gz
    ./configure --disable-install-rdoc
    make
    make prefix=/usr/local install

    三、安装Bundler Gem

    由于AWS被墙无法使用,修改ruby的源为淘宝

    gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
    gem sources -l

    添加以下软连接,否则可能提示找不到

    ln -s /usr/local/bin/ruby /usr/bin/ruby  
    ln -s /usr/local/bin/gem /usr/bin/gem  
    ln -s /usr/local/bin/bundle /usr/bin/bundle

    四、查看验证

    [root@test81 ~]# which ruby
    #/usr/local/bin/ruby
    [root@test81 ~]# which gem
    #/usr/local/bin/gem
    [root@test81 ~]# which bundle
    #/usr/local/bin/bundle
    [root@test81 ~]# ruby -v
    #ruby 2.1.7p400 (2015-08-18 revision 51632) [x86_64-linux]
    
    五、安装jekyll
    gem install jekyll
    gem install bundle
    bundel install
    
    六、启动jekyll服务
    jekyll new my-site
    bundel exec jekyll serve || jekyll serve
  • 相关阅读:
    uploadify
    mark down pad2
    yii1.1.3主从(多从)、读写分离配置
    yii多数据库
    Uploadify上传问题
    出现upstream sent too big header while reading response header from upstream错误
    Nginx 启动脚本/重启脚本
    VB6_小林的气象类模块
    进程与线程
    JDK动态代理与CGLib
  • 原文地址:https://www.cnblogs.com/chaoe/p/7606613.html
Copyright © 2011-2022 走看看