分布式文件系统TFS(taobao File System)安装

 

一。准备编译环境 

请在centos5的环境中安装 gcc编译器为4.1.2

 yum -y install gcc gcc+ gcc-c++ openssl openssl-devel pcre pcre-devel subversion automake.noarch libtool.x86_64 readline-devel.x86_64 e2fsprogs-devel.x86_64 readline-devel readline e4fsprogs e4fsprogs-devel ncurses-devel.x86_64  ncurses.x86_64

二。安装基本依赖包

1 libunwind

wget http://download.savannah.gnu.org/releases/libunwind/libunwind-1.1.tar.gz
tar xf  libunwind-1.1.tar.gz 
CFLAGS=-fPIC ./configure && make CFLAGS=-fPIC && make CFLAGS=-fPIC install 

 2 gperftools

 

wget http://gperftools.googlecode.com/files/gperftools-2.1.tar.gz 
tar xf gperftools-2.1.tar.gz 
cd gperftools-2.1 
./configure  && make && make install 
 3 jemalloc
http://www.canonware.com/download/jemalloc/jemalloc-3.6.0.tar.bz2
tar xf jemalloc-3.6.0.tar.bz2
cd jemalloc-3.6.0
./configure --prefix=/usr/local/ && make && make install
echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local_lib.conf 
echo "modprobe ext4" >> /etc/rc.sysinit
modprobe ext4
/sbin/ldconfig

 

 

4 tb-common-utils

vi ~/.bash_profile
加入
export TBLIB_ROOT=/usr/local/tblib
source ~/.bash_profile
svn co -r 18 http://code.taobao.org/svn/tb-common-utils/trunk tb-common-utils
sh build.sh

5 mysql 5.5+

1.安装配置yum 
wget http://centos.ustc.edu.cn/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/5/remi/x86_64/remi-release-5.10-1.el5.remi.noarch.rpm
rpm -ivh *.rpm
yum remove mysql
yum -y --enablerepo=remi install mysql mysql-server mysql.x86_64  mysql-devel.x86_64

三 make instll tfs

svn checkout http://code.taobao.org/svn/tfs/tags/release-2.2.16 tfs
cd tfs
sh bulid.sh init && ./configure --prefix=/usr/local/tfs --with-release=yes && make && make install

你可能感兴趣的:(分布式文件系统,TFS)