分布式文件TFS(taobao File System)安装(亲测)

?

1准备编译环境?

?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

下载源码包

wget 172.60.0.172:8080/libunwind-1.1.tar.gz?

wget 172.60.0.172:8080/gperftools-2.1.tar.gz?

?编译安装?

tar xf ?libunwind-1.1.tar.gz?

CFLAGS=-fPIC ./configure?

make CFLAGS=-fPIC && make CFLAGS=-fPIC install?

?

gperftools的安装

tar xf gperftools-2.1.tar.gz?

cd gperftools-2.1?

./configure ?

make && make install?

echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local_lib.conf?

#jemalloc的

http://www.canonware.com/download/jemalloc/jemalloc-3.6.0.tar.bz2

./configure --prefix=/usr/local/

make && make install

?

?

启用ext4

modprobe ext4

/sbin/ldconfig?

?

?

在~/.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

?

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 --enablerepo=remi list mysql

yum remove mysql

?

yum -y --enablerepo=remi install mysql mysql-server mysql.x86_64 ?mysql-devel.x86_64

svn checkout http://code.taobao.org/svn/tfs/tags/release-2.2.16

./configure /usr/local/tfs

make && make install

文档附上

?

?

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。