(转)scribe 安装过程
scribe 介绍:
?
scribe 是facebook 开源的分布式日志系统 。 可以用java 借助log4j 向分布式scribe 写入日志。
?
python 用默认安装路径。Ruby 推荐使用默认路径
解压安装即可
解压安装即可(不可改路径)
先安装libxml2 (php依赖它) 在安装php(默认安装路径)
./bootstrap.sh
./configure –with-boost=/usr/local/include/boost/ -- with-php-config=/phppath /bin/php-config
make
make install ???
thrift 安装完毕。
在当前目录 cd 到contrib/fb303/ :
./bootstrap.sh
./configure –with-boost=/usr/local/include/boost/
make
make install
fb303安装完毕。
七、安装scribe
?????? ./bootstrap
./configure –with-boost=/usr/local/include/boost/
make
make install
?
安装完毕。
?
配置环境变量 :
BOOST_ROOT=/usr/local/include/boost/
LD_LIBRARY_PATH=/usr/local/include/boost/lib::/usr/lob:/usr/local/lib
测试:
?? ? ???/usr/local/bin/scribed ?[scribe 解压目录]/examples/example1.conf?
?? ? 回车会出现:
?? ??[Sun Oct 31 23:37:38 2010] "STATUS: STARTING"
[Sun Oct 31 23:37:38 2010] "STATUS: configuring" [Sun Oct 31 23:37:38 2010] "got configuration data from file </home/setups/scribe/scribe/examples/example1.conf>" [Sun Oct 31 23:37:38 2010] "CATEGORY : default" [Sun Oct 31 23:37:38 2010] "Creating default store" [Sun Oct 31 23:37:38 2010] "configured <1> stores" [Sun Oct 31 23:37:38 2010] "STATUS: " [Sun Oct 31 23:37:38 2010] "STATUS: ALIVE" [Sun Oct 31 23:37:38 2010] "Starting scribe server on port 1463" Thrift: Sun Oct 31 23:37:38 2010 libevent 2.0.7-rc method epoll?
okay ?scribe 服务已启动。 (这个不只是测试,也是启动scribe 服务的方式。)