gollum
是一个可使用markdown来写做的wiki,在安装过程当中,记录一下。git
特色有如下几个方面:
* lightweight
* use Markdown
* web-based
* Can be easily stored in Git
github地址为Gollum,It’s a Sinatra based application. It supports, amongst others, Markdown. Evertime you make a change, it commits it in a local git repository. Also, the nice folks at Github open sourced it.github
#yum -y install ruby ruby-devel rubygems make gcc libxml2-devel libxslt-devel git libicu-devel
因为默认使用的ruby版本过低,咱们须要安装高版本的ruby,使用rvm来安装。
首先咱们须要安装rvmweb
#\curl -sSL https://get.rvm.io | bash
待rvm安装成功以后,安装高版本的ruby,我安装的是1.9.2shell
#rvm install 1.9.2
安装1.9.2版本的ruby以后,须要把ruby 1.9.2设为默认的ruby版本segmentfault
#rvm use 1.9.2 --default
接下来安装gollum和redcarpet(用来解析markdown语法)ruby
#gem install gollum redcarpet
接下来,咱们建立开始建立wikibash
# mkdir wiki # cd wiki # git init # gollum
这样已经搭建成功了gollum,gollum默认在4567端口,因此访问http://url:4567便可。markdown
效果如图:
app
gollum必须在wiki这个目录下执行,若是你在别的路径下执行gollum会报错,因此为了方便期间,能够本身写脚原本启动。
好比将下列保存为markdown_wikicurl
#!/usr/bin/env bash gollum /root/wiki
之后执行markdown_wiki
便可。
咱们须要将这个进程后台执行
nohup markdown_wiki