注意事项
- 由于TFS内部并未在32机器上做过测试,因此我们要用64的来安装;
- 安装过程中,如发现缺失某些库,直接用yum list xxx 来查看是否已经安装;
环境配置
2.6.x版本要依赖于tair(淘宝开源的缓存系统,类似MC),
安装步骤
a]假设你已经安装了VMWare,通过国内镜像下载CentOs系统,因资源较大,建议用BT下载:http://mirrors.sohu.com/centos/5.9/isos/x86_64/
b]在安装CentOs的过程中,需要将磁盘类型选择为IDE
c]安装完成后,请用yum update 完成更新操作
TFS依赖:mysql-devel/zlib-devel/uuidd/readline-devel/ncurses-devel/e4fsprogs-devel/boost-devel/snappy-devel/gtest/tb-common-utils/tair(2.2.x不需要)
其中mysql-devel需要另外指定安装源,才能找到大于5.1.x的版本,详细参考:http://elf8848.iteye.com/blog/1724423
[备注]:
1)在安装tfs_2.2.16时,对应的tb-common-utils要安装18一下的分支,否则会报类似如下错误:
base_packet.cpp:246: error: invalid conversion from 'const char*' to 'pthread_t'
2)如再安装过程中报: cannot find -ljemalloc 是缺少jemalloc依赖:
下载安装:
wget http://www.canonware.com/download/jemalloc/jemalloc-3.3.0.tar.bz2
下载:
svn checkout http://code.taobao.org/svn/tfs/tags/release-2.2.16/ tfs-2.2.16
cd tfs-2.2.16
编译并安装:
./configure --prefix=/home/yuyj/tfs --without-tcmalloc
make
make install
安装参考
http://code.taobao.org/p/tfs/wiki/faq/
http://elf8848.iteye.com/blog/1724423
http://blog.yunnotes.net/index.php/install_document_for_tfs/
http://gdcsy.blog.163.com/blog/static/12734360920125624859906/