centos5下安装tfs并使用nginx做访问

上传人:自*** 文档编号:79095822 上传时间:2019-02-16 格式:DOCX 页数:6 大小:53.90KB
返回 下载 相关 举报
centos5下安装tfs并使用nginx做访问_第1页
第1页 / 共6页
centos5下安装tfs并使用nginx做访问_第2页
第2页 / 共6页
centos5下安装tfs并使用nginx做访问_第3页
第3页 / 共6页
centos5下安装tfs并使用nginx做访问_第4页
第4页 / 共6页
centos5下安装tfs并使用nginx做访问_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《centos5下安装tfs并使用nginx做访问》由会员分享,可在线阅读,更多相关《centos5下安装tfs并使用nginx做访问(6页珍藏版)》请在金锄头文库上搜索。

1、CentOS 5下安装tfs并使用Nginx做访问看看新闻网看引擎系统运维操作系统环境rootlocalhost # uname -aLinux localhost.localdomain 2.6.18-371.9.1.el5 #1 SMP Tue Jun 10 17:49:56 EDT 2014 x86_64 x86_64 x86_64 GNU/Linuxrootlocalhost # cat /etc/issueCentOSrelease 5.10 (Final)Kernel r on an mrootlocalhost #PS:以下操作我只在如上系统进行验证使用,仅供参考1.更新yum源

2、CentOS 5.6 更新yum源我这里使用的搜狐的源,博友们可以自己穿件源cd /etc/yum.repos.dmv CentOS-Base.repo CentOS-Base.repo.savewget http:/ updateyum makecache2.安装高版本mysqlwget http:/ http:/ -ivh *.rpmecho priority=1 /etc/yum.repos.d/remi.repoecho priority=1 /etc/yum.repos.d/epel-testing.repoecho priority=1 /etc/yum.repos.d/epel.

3、repo检查mysql 是否有可升级版本。发现有版本可以升级到mysql5.5.11。yum enablerepo=remi list mysql删除操作系统自带的低版本的mysqlyum remove mysql通过新yum源安装高版本的mysqlyum -y enablerepo=remi install mysql mysql-server mysql.x86_64 mysql-devel.x86_643.安装支持包 automake autoconfig 和 libtool验证automake是否安装rpm -qa |grep automake验证autoconfig是否安装 /usr

4、/bin/autoconf -Vauotmake 1.4以上版本需要安装libuuid-devel,zlib-devel,mysql-devel三个开发包查看以安装的rpm包:rpm -qa|grep 包名rpm -qa|grep libuuidrpm -qa|grep zlib-develrpm -qa|grep mysql-devel如果你使用RedHat5.x和Centos 5.x会找不到libuuid-devel包,请看下面。RedHat5.x和Centos 5.x 安装: yum install uuidd安装其它支持包: yum install libtool zlib-devel

5、下面的readline包系统自带了,ncurses包系统默认没有,我也安装,你安不安自已定吧。rootlocatfs local# yum install readline-devel readlinerootlocatfs local# yum install ncurses-devel.x86_64 ncurses.x86_644.安装ext4格式工具rootlocatfs local# yum install e4fsprogs e4fsprogs-devel 加载ext4模块,让系统支持ext4文件系统rootlocatfs local# modprobe ext45.安装tb-com

6、mon-utilstb-common-utils是淘宝开发使用的一个公共库tbsys是对操作系统服务的封装,tbnet则提供了网络框架。 tbnet和tbsys被作为tb-common-utils被开源了,可以访问 http:/code.taobao.org/trac/tb-common-utils/wikiTFS依赖于底层开发包tbnet。tb-common-utils里面含有tbsys和tbnet首先编译安装tblib(tb-common-utils),这里我安装在和tfs同一个路径。(http:/code.taobao.org/svn/tb-common-utils/trunk/ tb-

7、common-utils)gtest库是单元测试框架,下面先安装安装gtest下载gtest见本文下面的资源,rootlocatfs local# unzip gtest-1.6.0.ziprootlocatfs local# cd gtest-1.6.0rootlocatfs local# ./configurerootlocatfs local# makerootlocatfs local# cd make/rootlocatfs local# makerootlocatfs local# ./sample1_unittest安装tb-common-utils新建一个下载目录,并进入这个目

8、录。下载源码: 这里下载版本18的因为淘宝开发的东西不往下兼容svn checkout -r 18 http:/code.taobao.org/svn/tb-common-utils/trunk/ tb-common-utils编译和安装tbnet, tbsys库ps:建议将这行命令直接写入/.bash_profile,然后执行“. /.bash_profile”修改:rootlocatfs local# vi /etc/profile添加:(计划安装在/usr/local/tb/lib目录)export TBLIB_ROOT=/usr/local/tb/lib生效:rootlocatfs l

9、ocal# source /etc/profilerootlocatfs local# cd tb-common-utils/rootlocatfs local# chmod +x *.shrootlocatfs local# ./build.sh安装完成后,在TBLIB_ROOT表示的目录(/usr/local/tb/lib),应该可以看到include、lib 两个目录。6.编译安装TFS-编译安装tfs (安装到 /usr/local/tfs目录)rootlocatfs local# svn checkout http:/code.taobao.org/svn/tfs/tags/rele

10、ase-2.2.10 tfs-2.2.10进入 tfs 目录rootlocatfs local# cd tfs-2.2.10/rootlocatfs local# chmod +x *.shrootlocatfs local# ./build.sh initrootlocatfs local# ./configure prefix=/usr/local/tfs without-tcmallocrootlocatfs local# makerootlocatfs local# make install7.安装nginx-tfs模块TFS模块使用了一个开源的JSON库来支持JSON,先安装yajl

11、-2.0.1分割线yajl-2.0.1 与 gtest 下载免费下载地址在http:/ 5下安装tfs并使用Nginx做访问下载方法见http:/ opt# cd lloyd-yajl-12ee82a/rootlocalhost lloyd-yajl-12ee82a# ./configure prefix=/usr/local/yajl & make & make install报错= removing old build files= running CMake in build directory./configure: line 41: cmake: command not foundT

12、he “cmake” program is required to configure yajl.Its available from most ports/packaging systems and http:/cmake.org解决办法:yum -y install cmake继续编译通过下载tengine此软件是nginx的升华版本,在nginx上二次开发wget http:/tengine.taobao.org/download/tengine-2.0.3.tar.gz下载nginx-tfs模块wget https:/ tengine-2.0.3# ./configure prefix

13、=/usr/local/nginx add-module=/opt/nginx-tfs-master & make & make install报错./configure: error: the HTTP rewrite module requires the PCRE library.You can either disable the module by using without-http_rewrite_moduleoption, or install the PCRE library into the system, or build the PCRE librarystatically from the source with nginx by using with-pcre= option.解决办法rootlocalhost tengine-2.0.3# yum -y install pcre-devel继续编译tenginerootlocalhost tengine-2.0.3# ./configure prefix=/usr/local/nginx add-module=/o

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 其它办公文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号