1、启动kafka./bin/kafka-server-start.sh -daemon config/server.properties & 2、列出已创建的topic列表./bin/kafka-topics.sh --list --zookeeper localhost:2181 3、创建top... ...
分类:
其他好文 时间:
2018-05-06 18:59:17
阅读次数:
209
busybox中提供了一个syslog. 配置日志处理规则 可通过设置/etc/syslog.conf具体配置不同log的处理规则,以下的简单配置,将log全部写到/var/log/messages和控制台 使用缓冲区 如果未设置syslog.conf,默认是写到/var/log/messages。 ...
分类:
其他好文 时间:
2018-05-06 16:13:44
阅读次数:
896
1)测试目标网站是fnng.cnblogs.com 和 tt-topia.rhcloud.com 2)测试目的是该网站在负载达到20 QPS 时的响应时间。 QPS 解释 QPS : Query Per Second 每秒查询率。是一台查询服务器每秒能够处理的查询次数。在因特网上,作为域名系统服务器 ...
分类:
其他好文 时间:
2018-05-04 23:22:08
阅读次数:
183
请求头 : (下面 10 行都是请求头) GET /index.html HTTP/1.1 这两行比较重要 GET /classic.css HTTP/1.1 Host: 127.0.0.1:8997 Connection: keep-alive User-Agent: Mozilla/5.0 (X... ...
分类:
Web程序 时间:
2018-05-04 22:24:55
阅读次数:
241
传送门:http://poj.openjudge.cn/practice/C16H?lang=en_US 题面:描述 Wenwen has a magical ball. When put on an infinite plane, it will keep duplicating itself f ...
分类:
其他好文 时间:
2018-05-04 19:05:39
阅读次数:
190
有时候 commit 后才意识到还未 pull,这个时候会有如下提示: wlan-0-182:mobile-v2 lixiumei$ hg pull -upulling from ssh://hg@bitbucket.org/ifanr/socialbasesearching for changes ...
分类:
其他好文 时间:
2018-05-03 19:39:30
阅读次数:
206
http://kafka.apache.org/quickstart Step 1: Download the code Download the 1.1.0 release and un-tar it. 1 2 > tar -xzf kafka_2.11-1.1.0.tgz > cd kafka_ ...
分类:
其他好文 时间:
2018-05-03 19:36:23
阅读次数:
204
Scrapy是一个比较好用的Python爬虫框架,你只需要编写几个组件就可以实现网页数据的爬取。但是当我们要爬取的页面非常多的时候,单个主机的处理能力就不能满足我们的需求了(无论是处理速度还是网络请求的并发数),这时候分布式爬虫的优势就显现出来。 而Scrapy-Redis则是一个基于Redis的S ...
分类:
其他好文 时间:
2018-05-03 16:41:06
阅读次数:
214
you wouldn't try to explore any problem structure in DFO low dimension policy 30 degrees of freedom 120 paramaters to tune keep the positive results i ...
分类:
其他好文 时间:
2018-05-02 16:18:33
阅读次数:
201
Git 内部原理 无论是从之前的章节直接跳到本章,还是读完了其余章节一直到这——你都将在本章见识到 Git 的内部工作原理 和实现方式。 我们发现学习这部分内容对于理解 Git 的用途和强大至关重要。不过也有人认为这些内容对于初学 者而言可能难以理解且过于复杂。 因此我们把这部分内容放在最后一章,在 ...
分类:
其他好文 时间:
2018-05-02 16:18:25
阅读次数:
274