Scribe安装及配置方法
1、准备工作
系统环境:Centos 6.x 64位
安装依赖包:
yum -y install gcc gcc-c++ m4 autoconf automake libtool libicu-devel python-devel libevent-devel
刷新动态链接库:
/sbin/ldconfig
2、下载安装包
cd /usr/local/src
wget /dist/thrift/0.7.0/thrift-0.7.
wget
php软件安装包nchc.dl.sourceforge/project/boost/boost/1.58.0/boost_1_58_ wget github/facebookarchive/scribe/archive/master.zip
3、编译安oost
cd /usr/local/src
tar zxvf boost_1_58_
cd boost_1_58_0
./bootstrap.sh --prefix=/usr/local/boost
./bjam --prefix=/usr/local/boost install
echo "/usr/local/boost/lib/" >> /etc/f
/sbin/ldconfig
4、编译安装thrift:
thrift需要python支持,如果看到的不是OK,请升级python-devel到更高版本。
python -c "" && echo ok
cd /usr/local/src
tar zxvf thrift-0.7.
cd thrift-0.7.0
chmod +x configure
./configure --prefix=/usr/local/thrift --with-csharp=no --with-java=no --with-erlang=no --with-perl=no --with-php=no --with-ruby=no --with-py=yes --with-libevent --with-boost=/usr/local/boost/
make
make install
echo "/usr/local/thrift/lib/" >> /etc/f
/sbin/ldconfig
5、编译安装thrift-fb303:
cd /usr/local/src/thrift-0.7.0/contrib/fb303
chmod +x bootstrap.sh
./bootstrap.sh --with-boost=/usr/local/boost/
./configure --prefix=/usr/local/fb303 --with-boost=/usr/local/boost/ --with-thriftpath=/usr/local/thrift/
make
make install
6、编译安装scribe :
cd /usr/local/src
unzip scribe-master.zip
cd scribe-master
.
/bootstrap.sh --prefix=/usr/local/scribe --with-thriftpath=/usr/local/thrift/ --with-fb303path=/usr/local/fb303/ --with-boost=/usr/local/boost/
make
make install
7、测试scribe安装是否成功 :
[root@localhost /]# /usr/local/scribe/bin/scribed
[Mon Jul 27 15:04:24 2015] "STATUS: STARTING"
[Mon Jul 27 15:04:24 2015] "STATUS: configuring"
[Mon Jul 27 15:04:24 2015] "STATUS: Bad config - exception: Failed to open config file </usr/local/f>"
[Mon Jul 27 15:04:24 2015] "STATUS: No stores configured successfully"
[Mon Jul 27 15:04:24 2015] "STATUS: WARNING"
[Mon Jul 27 15:04:24 2015] "Starting scribe server on port 0"
Thrift: Mon Jul 27 15:04:24 2015 libevent 1.4.13-stable method epoll
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论