scribe安装
安装过程:
一、输入gcc –v 检查gcc版本是否>3.3.5 ?????? 是,则继续下一步。否,则安装gcc 。 二、安装ruby 和python python 用默认安装路径。Ruby 推荐使用默认路径 ??? 安装过程均为./configure? make? make install 三、安装lievent ? 解压安装即可 ?????? 安装过程为./configure? make? make install 四、安装 boost 1.45.0? ? 解压安装即可(不可改路径) ./bootstrap.sh ./jpam install 五、安装 php 和libxml2 php要make安装,或者找到默认安装的php-config路径 先安装libxml2 (php依赖它) 在安装php(默认安装路径) ?????? 安装过程均为./configure? make? make install 六、安装facebook 服务-- 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? [scribe 解压目录]/examples/example1.conf ???? 回车会出现: ???? [Sun Oct 31 23:37:38 2010] "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? 客户端安装: 进入CPAN shell: perl -MCPAN -e shell 初次运行CPAN时需要做一些设置,机器需要能联网 cpan>h? (获得帮助) ? cpan>m (列出CPAN上所有模块的列表) cpan>install module_name (自动完成从下载到安装的全过程。) ? cpan>q (安装完,后退出) 卸载方式: perl -e 'print join "n",@INC' 显示出环境变量INC指向的目录 在这些目录下查找模块的.pm文件,删除此文件即可。 手动安装: perl Makefile.PL make make install 手动安装方式卸载: 到之前安装源码的目录执行: make uninstall|grep unlink|sh 也就是删除之前安装的模块的相关文件。 然后删除安装目录下Makefile文件,这个是前一次安装生成的. 再重复安装过程。或者删掉目录,重新解压新目录进行安装。 1、安装File::Tail::Scribe???? cpan>? install File::Tail::Scribe /usr/local/bin/tail_to_scribe.pl -config tail_to_test.conf -debug /opt/scribeClient/test.log -daemon (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |