taobao tfs ‘一键’安装脚本
2013-11-14 00:00
239 查看
rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm yum install mysql.`uname -i` yum-plugin-replace yum replace mysql --replace-with mysql55 yum remove mysql mysql-devel yum install mysql55 mysql55-server mysql55-devel yum install svn -y yum install -y libtool.x86_64 libtool-ltdl-devel.x86_64 libtool-ltdl.x86_64 yum install -y zlib-devel mysql-devel yum install -y readline.x86_64 readline-devel.x86_64 cd / mkdir taobao-series cd /taobao-series/ mkdir source_code cd source_code/ svn checkout -r 17 http://code.taobao.org/svn/tb-common-utils/trunk/ tb-common-utils export TBLIB_ROOT="/taobao-series/lib" if grep -Fxqv "TBLIB_ROOT" ~/.bash_profile; then echo 'TBLIB_ROOT="/taobao-series/lib"' >> ~/.bash_profile fi cd tb-common-utils/ sh build.sh cd .. wget http://downloads.sourceforge.net/project/libuuid/libuuid-1.0.2.tar.gz tar zxf libuuid-1.0.2.tar.gz cd libuuid-1.0.2 ./configure --prefix=/taobao-series/libuuid make && make install cd .. wget https://github.com/couchbase/gperftools/archive/2.0.1-linux.tar.gz tar zxf 2.0.1-linux cd gperftools-2.0.1-linux ./configure --prefix=/taobao-series/gperftools --enable-frame-pointers make && make install if [ ! -f /etc/ld.so.conf.d/gperftools.conf ]; then echo "/taobao-series/gperftools/lib" >> /etc/ld.so.conf.d/gperftools.conf fi ldconfig cd .. wget http://www.canonware.com/download/jemalloc/jemalloc-3.4.1.tar.bz2 bunzip2 jemalloc-3.4.1.tar.bz2 tar xf jemalloc-3.4.1.tar cd jemalloc-3.4.1 ./configure --prefix=/taobao-series/jemalloc make && make install if [ ! -f /etc/ld.so.conf.d/jemalloc.conf ]; then echo "/taobao-series/jemalloc/lib" >> /etc/ld.so.conf.d/jemalloc.conf fi ldconfig cd .. svn co http://code.taobao.org/svn/tfs/tags/release-2.2.10 cd release-2.2.10/ ./build.sh init ./configure --prefix=/taobao-series/tfs --with-uuid=/taobao-series/libuuid --with-tcmalloc=/taobao-series/gperftools --with-jemalloc=/taobao-series/jemalloc make && make install rm -rf /taobao-series/source_code
相关文章推荐
- Nginx一键安装脚本
- zabbix一键安装脚本
- 一键自动化安装LAMP脚本(用第三方yum源安装)
- 使用shell脚本一键安装zabbix并配置客户端的自动发现选项
- centos shell编程5 LANMP一键安装脚本 lamp sed lnmp 变量和字符串比较不能用-eq cat > /usr/local/apache2/htdocs/index.php <<EOF重定向 shell的变量和函数命名不能有横杠 平台可以用arch命令,获取是i686还是x86_64 curl 下载 第三十九节课
- centos 一键安装配置nginx脚本
- lanmp的一键安装脚本
- 一键安装nginx脚本
- 一个客户端一键安装环境和服务的shell脚本
- tomcat+jdk一键安装脚本
- CentOS下nginx一键安装shell脚本