(转)scribe 安装过程
scribe 介绍:scribe 是facebook 开源的分布式日志系统 。 可以用java 借助log4j 向分布式scribe 写入日志。
安装环境:
centos5.2
所需软件:
安装过程:
一、输入
gcc –v
检查
gcc
版本是否
>3.3.5
是,则继续下一步。否,则安装
gcc
。
二、安装
ruby
和
python
python
用默认安装路径。
Ruby
推荐使用默认路径
安装过程均为
./configure
make
make install
三、安装
lievent
解压安装即可
安装过程为
./configure
make
make install
四、安装
boost
解压安装即可(不可改路径)
安装过程为
./configure
make
make install
(
安装用时较长
)
五、安装
php
和
libxml2
先安装
libxml2
(
php
依赖它)
在安装
php
(默认安装路径)
安装过程均为
./configure
make
make install
六、安装
服务
-- thrift
和
fb303
首先解压并进入
thrift
目录
./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 /examples/example1.conf
回车会出现:
"STATUS: STARTING"
Java代码
[*]
[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
"STATUS: configuring"
"got configuration data from file </home/setups/scribe/scribe/examples/example1.conf>"
"CATEGORY : default"
"Creating default store"
"configured <1> stores"
"STATUS: "
"STATUS: ALIVE"
"Starting scribe server on port 1463"
Thrift: Sun Oct 31 23:37:38 2010 libevent 2.0.7-rc method epoll
okay scribe 服务已启动。 (这个不只是测试,也是启动scribe 服务的方式。)
页:
[1]