CentOs 6 install Jekyll

less than 1 minute read

CentOs 6 install Jekyll

1.Option install rvm

    $ sudo yum update
    $ curl -L get.rvm.io | bash -s stable
    $ source ~/.bashrc
    $ source ~/.bash_profile
    $ exit

    $ restart to session

2.Modify RVM Ruby resource

  • FOR MAC
           $ sed -i .bak 's!cache.ruby-lang.org/pub/ruby!ruby.taobao.org/mirrors/ruby!' $rvm_path/config/db
    
  • FOR LINUX
        $ sed -i 's!cache.ruby-lang.org/pub/ruby!ruby.taobao.org/mirrors/ruby!' $rvm_path/config/db

        rvm list known
        rvm install 2.2
        rvm use 2.2 or rvm use 2.2 --default
        rvm list
        rvm remove XX
    

2.Install rubygems

    ruby -v
    yum install rubygems
    gem -v

3.Install nodejs

    yum install nodejs

4.Install jekyll

    gem install jekyll

5.Create First blog

 $ jekyll new blog
 $ cd blog
 $ jekyll server --host 0.0.0.0 --port 80

Open http://ip:4000 in Browser

Categories:

Updated:

Leave a Comment