唯一的真理

True or False

Octopress Install

信息版本

CentOS release 6.2
Ruby 1.9.3
Nginx 1.4.3

安装需要的包

1
yum install -y git gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel

安装ruby

1
2
3
4
5
6
7
8
curl -L https://get.rvm.io | bash -s stable --ruby
#curl -L 表示允许跳转
#bash -s 模拟标准输入
#安装位置/usr/local/rvm/scripts/rvm

vim /etc/bashrc #增加环境变量
source /usr/local/rvm/scripts/rvm
source /usr/local/rvm/scripts/completion

FastDFS Install

1
2
3
4
5
6
7
8
9
10
11
12
#信息版本     
Centos 2.6.32-358.el6.x86_64
FastDFS 4.06
Nginx 1.4.3


#官网下载地址
https://fastdfs.googlecode.com/files/FastDFS_v4.06.tar.gz

#测试服务器
test1 172.16.3.212     (tracker,storage)
test2 172.16.3.213     (tracker,storage)

安装FastDFS

1
2
3
#安装需要的包
yum groupinstall -y "Development Tools"
yum install -y libevent-devel pcre-devel zlib-devel
返回顶部