Larbin的安装:
tar -zxvf larbin-2.6.3.tar.gz
cd larbin-2.6.3
./configure
make
这时会报错,修改
adns文件夹下internal.h文件569-571行:
复制/usr/include/c++/的iostream文件到larbin的src目录下,并改名为iostream.h,在文件中添加一句using namespace std;
修改编译选项配置:vi options.h
修改输出选项: 将//#define SIMPLE_SAVE前的//取消掉,在#define DEFAULT_OUTPUT前加//
(注释相当清楚)
检查系统是否满足编译要求:./configure
编译:make
运行:进入larbin目录:./larbin
ctrl+c 终止程序
PS:
配置文件主要是options.h 和larbin.conf,可以根据自己的需求配置
在浏览器输入localhost:8081可以看到爬到的的网页的统计信息
tar -zxvf larbin-2.6.3.tar.gz
cd larbin-2.6.3
./configure
make
这时会报错,修改
adns文件夹下internal.h文件569-571行:
adns_status adns__parse_domain(adns_state ads, int serv, adns_query qu,
vbuf *vb, parsedomain_flags flags,
const byte *dgram, int dglen, int*cbyte_io, int max);
更正为:
adns_status adns__parse_domain(adns_state ads, int serv, adns_query qu,
vbuf *vb, adns_queryflags flags,
const byte *dgram, int dglen, int*cbyte_io, int max);
复制/usr/include/c++/的iostream文件到larbin的src目录下,并改名为iostream.h,在文件中添加一句using namespace std;
修改编译选项配置:vi options.h
修改输出选项: 将//#define SIMPLE_SAVE前的//取消掉,在#define DEFAULT_OUTPUT前加//
(注释相当清楚)
检查系统是否满足编译要求:./configure
编译:make
运行:进入larbin目录:./larbin
ctrl+c 终止程序
PS:
配置文件主要是options.h 和larbin.conf,可以根据自己的需求配置
在浏览器输入localhost:8081可以看到爬到的的网页的统计信息