阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

CentOS下scribe日志分析工具安装

128次阅读
没有评论

共计 2007 个字符,预计需要花费 6 分钟才能阅读完成。

系统 CentOS6.2 x86_64

1.yum 安装 gcc,flex,m4,python/python-devel,ruby,libevent/libevent-devel,openssl/openssl-devel,bzip2/bzip2-devel,zlib/zlib-devel,bison,autoconf,automake,libtool

2. 编译安装 boost

2.1 wget http://nchc.dl.sourceforge.net/project/boost/boost/1.45.0/boost_1_45_0.tar.gz
2.2 tar zxvf boost_1_45_0.tar.gz -C /usr/local/
2.3 ./bootstrap.sh
2.4 ./bjam -s HAVE_ICU=1 –prefix=/usr/local/boost –includedir=/usr/local/boost/include –libdir=/usr/local/boost/lib
2.5 ./bjam install –prefix=/usr/local/boost
echo “/usr/local/boost/lib” >> /etc/ld.so.conf
echo “/usr/local/boost/include” >> /etc/ld.so.conf
ldconfig

3. 编译安装 thrift+fb303

安装 thrift
3.1 wget http://archive.apache.org/dist/thrift/0.7.0/thrift-0.7.0.tar.gz
3.2 tar zxvf thrift-0.7.0.tar.gz -C/usr/local/
3.3 cd /usr/local/thrift-0.7.0
3.4 chmod +x configure
3.5 ./configure–with-boost=/usr/local/boost
3.6 make && make install
echo “/usr/local/thrift/lib” >> /etc/ld.so.conf
ldconfig

安装 fb303
3.7 cd /usr/local/thrift-0.7.0/contrib/fb303
3.8 chmod +x bootstrap.sh
3.9 ./bootstrap.sh –with-boost=/usr/local/boost/
3.10 ./configure –prefix=/usr/local/thrift/fb303 –with-boost=/usr/local/boost –with-thriftpath=/usr/local/thrift
3.11 make && ake install

4. 编译安装 scribe

4.1 去 https://github.com/facebook/scribe 下载 scribe
4.2 解压 unzip scribe-master.zip
4.3 cd scribe-master
export BOOST_ROOT=/usr/local/boost
export LD_LIBRARY_PATH=/usr/local/thrift/lib:/usr/lib:/usr/local/lib:/usr/local/boost/lib:/usr/local/thrift/fb303/lib
./bootstrap.sh  –with-boost=/usr/local/boost –with-boost-filesystem=boost_filesystem
4.4 ./configure –prefix=/usr/local/scribe –with-boost=/usr/local/boost –with-thriftpath=/usr/local/thrift  –with-fb303path=/usr/local/thrift/fb303 –with-boost-filesystem=boost_filesystem
4.5 make && make install

5. 测试

cp example/example1.conf  /tmp
/usr/local/scribe/bin/scribed /tmp/example1.conf
进行测试

Scribe 配置文件解析  http://www.linuxidc.com/Linux/2013-07/87767.htm

大数据应用日志采集之 Scribe 安装配置指南  http://www.linuxidc.com/Linux/2013-07/87766.htm

更多 CentOS 相关信息见 CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

本文永久更新链接地址 :http://www.linuxidc.com/Linux/2016-03/128703.htm

正文完
星哥说事-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-21发表,共计2007字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中