PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dht_client 分布式 Sep 22, 2017
dht_client_v2(task) 优化代码 降低cpu占用 Oct 23, 2017
dht_server 分布式 Sep 22, 2017
sql 分布式 Sep 22, 2017
1.txt 213 Dec 19, 2017
README.md 演示地址 Sep 22, 2017
hashInfo_20170705.log 1 Jul 5, 2017

README.md

phpDhtSpider

php实现的dht爬虫(分布式)

需要swoole拓展

swoole version 1.9.18

PHP Version 5.6+

#########运行说明##############

dht_client目录 为爬虫服务器 环境要求

1.php安装swoole拓展 (pecl install swoole 默认安装1.9.18版本)

2.设置服务器 ulimit -n 100000

3.关闭防火墙 有后台策略控制的也关闭测试(dht网络端口不确定)

4.运行 php go.php

很多采集不到数据 是由于第三点导致的

=============================================================

dht_server目录 接受数据服务器(可在同一服务器) 环境要求

1.php安装swoole拓展 (pecl install swoole 默认安装1.9.18版本)

2.设置服务器 ulimit -n 100000

3.防火墙开发dht_client请求的对应端口(配置项中)

4.运行 php go.php

演示地址:http://www.808x.com