安装fastcgi:
<a href="http://www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/">http://www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/</a>
在自己的虚拟机上安装munin
命令:php -r 'echo date("ymdhis", 1330936860);'
php获取本进程函数:getmypid()
打出当时的方法名:
fwrite(stdout, __method__ . "\n");
ll -h 看每个文件大小
监护redis报错:
<a href="http://xingqiba.sinaapp.com/?p=240">http://xingqiba.sinaapp.com/?p=240</a>
redis需要将
修改redis.conf的daemonize为no
[program:redis]
command = redis-server
autostart=true
autorestart=true
startsecs=3
[program:webdis]
command = /usr/local/webdis/webdis
<a href="http://incubator.apache.org/kafka/index.html">http://incubator.apache.org/kafka/index.html</a>
看一下
<a href="http://www.zeromq.org/intro:get-the-software">http://www.zeromq.org/intro:get-the-software</a>
yum search zeromq
查找与zeromq匹配的程序
<a href="http://blog.csdn.net/heiyeshuwu/article/details/3453854">http://blog.csdn.net/heiyeshuwu/article/details/3453854</a>
cannot find autoconf. please check your autoconf installation and the
$php_autoconf environment variable. then, rerun this script.
yum install autoconf
如何编写安装简单的php扩展:
reactor:
<a href="http://www.wuzesheng.com/?p=1624">http://www.wuzesheng.com/?p=1624</a>
<a href="http://www.wuzesheng.com/?p=1607">http://www.wuzesheng.com/?p=1607</a>
<a href="http://code.google.com/p/xiao5geproject/source/checkout">http://code.google.com/p/xiao5geproject/source/checkout</a>
<a href="http://hi.baidu.com/charles_zhang/blog/item/5383236dd3ad23f0431694ab.html">http://hi.baidu.com/charles_zhang/blog/item/5383236dd3ad23f0431694ab.html</a>
<a href="http://blog.csdn.net/hackyz/article/details/5027352">http://blog.csdn.net/hackyz/article/details/5027352</a>
<a href="http://hi.baidu.com/zjm1126/blog/item/7a69876d2bf256ee431694c3.html">http://hi.baidu.com/zjm1126/blog/item/7a69876d2bf256ee431694c3.html</a>
redis 2.2和2.4区别:
两版本区别
<a href="http://zhupan.iteye.com/blog/1310670">http://zhupan.iteye.com/blog/1310670</a>
redis的数据库键值设计
<a href="http://www.mysqlops.com/2011/09/06/redis-kv-design.html">http://www.mysqlops.com/2011/09/06/redis-kv-design.html</a>
1 安装zeromq
yum install zeromq
apache kafka是一个分布式的订阅消息系统
通过o(1)的磁盘数据结构提供消息的持久化,这种结构对于即使数以tb的消息存储也能够保持长时间的稳定性能。
高吞吐量:即使是非常普通的硬件kafka也可以支持每秒数十万的消息。
支持通过kafka服务器和消费机集群来分区消息。
支持hadoop并行数据加载。
kafka aims to unify offline and online processing by providing a mechanism for parallel load into hadoop as well as the ability to partition real-time consumption over a cluster of machines
kafka的目的在于提供一种让集群计算并行的机制来统一离线和在线的消息处理,并且能很好的处理集群计算的实时消耗问题
kafka提供了一套非常完善的javaapi
kafka也可以从命令行运行
server:
启动zookeeper server
bin/zookeeper-server-start.sh config/zookeeper.properties
启动kafka server
bin/kafka-server-start.sh config/server.properties
客户端:
发送消息:
bin/kafka-console-producer.sh --zookeeper localhost:2181 --topic test
另一个客户端:
bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic test --from-beginning
kafka最开始是由linkin公司来使用并发展起来的
kafka主要用户activity stream and operational data(变化性较大的数据)
比如:
1 feed,内容订阅
2 一些变化较大的投票和排名等数据
3 网站需要为了安全性在下线的时候能够进行垃圾网络爬虫的搜索,垃圾邮件的分析等
4 许多网站需要当事情发送的时候有实时的监控并进行报警
5 经常需要集群系统在下线的时候进行处理,上线的时候进行处理的报告。比如统计等
linkin的结构:
