一文读懂tomcat组件--一个web服务器的架构演化史
1.tomcat是谁?
mongdb开始标记
1.下载地址为:http://www.mongodb.org/downloads下载跑起来2.文档http://docs.mongodb.org/manual/从头到尾读一遍3.中文社区http://mongodb.csdn.net/
centos mongodb安装及简单实例
1.创建目录并设置写权限的操作如下:$mkdir-p/data/db(创建目录和必要的父目录,若父目录不存在则先创建父目录再创建子目录)$chown-R$usergroup:$user/data/db2.下载gz文件并解压$tarzxvfmongodb-linux-i686-xxxx.gz$cdmo
Redis configuration
官方2.6配置如下:#Redisconfigurationfileexample#Noteonunits:whenmemorysizeisneeded,itispossibletospecify#itintheusualformof1k5GB4Mandsoforth:##1k=>1000byt
redis学习资料
1.官方网站:http://redis.io/2.深入分析redis-from-the-ground-up:http://blog.mjrusso.com/2010/10/17/redis-from-the-ground-up.htmlRedis:underthehoodhttp://paulada
Redis运行流程源码解析--转载
http://blog.nosqlfan.com/html/4007.htmlhttp://www.searchdatabase.com.cn/showcontent_62166.htm导读:本文分析源码基于Redis2.4.7stable版本,对Redis运行流程,命令处理的内部实现进行了深入讲解
redis High Availability---Redis Sentinel翻译
注意,本文档为最新(11月21日),旧版本的可以参考:http://redis.io/topics/sentinel-old不鼓励使用旧版本的文档。RedisSentinel是一个用来管理Redis服务器的系统,它主要工作有三种:1.监控。Sentinel一直检测主从redis服务器是否正常工作。2
Redis: under the hood---转载
http://pauladamsmith.com/articles/redis-under-the-hood.html#redis-under-the-hoodHowdoestheRedisserverwork?IwascurioustolearnmoreaboutRedis’sinternals,
Linux环境进程间通信(二): 信号--转载
http://www.ibm.com/developerworks/cn/linux/l-ipc/part2/index1.htmlhttp://www.ibm.com/developerworks/cn/linux/l-ipc/part2/index2.html一、信号及信号来源信号本质信号是在软
深入redis内部--实现双向链表
数据结构的应用--Adlist.h定义1.节点结构typedefstructlistNode{structlistNode*prev;//前向节点structlistNode*next;//后向节点void*value;//该节点的值}listNode;2.双向链表结构typedefstructli
深入redis内部--实现字符串
redis字符串的定义和实现在Ssd.h和Ssd.c中。1.定义typedefchar*sds;//本质是字符char的指针2.字符串的操作sdssdsnew(constchar*init){size_tinitlen=(init==NULL)?0:strlen(init);returnsdsnew
深入redis内部--字典实现
redis的字典定义和实现在dict.h和dict.c文件中。1.字典结构typedefstructdict{dictType*type;//定义了字典需要的函数void*privdata;dicththt[2];//哈希表结构intrehashidx;//下一个需要扩容的字典编号,若rehashi
深入redis内部--事件处理机制
1.redis事件的定义/*Stateofaneventbasedprogram*/typedefstructaeEventLoop{intmaxfd;/*highestfiledescriptorcurrentlyregistered*/intsetsize;/*maxnumberoffilede
深入redis内部---网络编程
Redis在anet.h和anet.c中封装了底层套接字实现:1.anetTcpServer,建立网络套接字服务器,完成对socket(),bind(),listen()等操作的封装,返回socket的fd。intanetTcpServer(char*err,intport,char*bindadd
Redis双机热备方案--转
http://luyx30.blog.51cto.com/1029851/1350832参考资料:http://patrick-tang.blogspot.com/2012/06/redis-keepalived-failover-system.htmlhttp://deidara.blog.51c
HAProxy advanced Redis health check---ref
http://blog.exceliance.fr/2014/01/02/haproxy-advanced-redis-health-check/HAProxyadvancedRedishealthcheckPostedonJanuary2,2014byBaptisteAssmannIntroduc
深入redis内部之redis启动过程之二
接上文,继续分析代码1.设置线程安全模式zmalloc_enable_thread_safeness();/*设置线程安全标识符为1*/voidzmalloc_enable_thread_safeness(void){zmalloc_thread_safe=1;}2.内存溢出处理zmalloc_se
阅读redis源代码的一些体会
最近在学习redis及阅读redis等程序的源码时,有一些收获,特记录到下面。1.第一步,阅读源代码借助最好可以跟踪的工具去读,如sourceinsight。我使用的是windows7环境,又因为是c程序,故使用sourceinsight,当然还有其他的方式,比如阅读java代码可以导入到eclip
redis终于有比较大的进展了,redis3.0.1 稳定版本发布,支持集群。
原文地址:https://raw.githubusercontent.com/antirez/redis/3.0/00-RELEASENOTESRedis3.0releasenotes--[Redis3.0.1]Releasedate:5May2015--[Redis3.0.0]Releasedat
memcached client --ref
ClientsClientAPI's/librariesUpdatedJul14,2012bydorma...@rydia.netref:https://code.google.com/p/memcached/wiki/ClientsC/C++libmemcachedhttp://libmemcac