nginx非常早就支持tcp proxy。可是一直不知道其使用,近期在nginx blog上看见了。一些实践者将其运用到数据库訪问的负载均衡以及实现读写分离,来提高数据库的吞吐量,这里我不会讲详细的搭建实现。仅仅是最一些理论上的设计猜想。 直接上图 db集群。分为读db和写db。写db向读db同步数 ...
分类:
数据库 时间:
2017-06-24 20:48:24
阅读次数:
179
android组件之间的通信有多种实现方式。Broadcast就是当中一种。在activity和fragment之间的通信,broadcast用的很多其它本文以一个activity为例。 效果如图: 布局文件: <LinearLayout xmlns:android="http://schemas. ...
分类:
移动开发 时间:
2017-06-24 18:46:01
阅读次数:
248
参考: http://stackoverflow.com/questions/3292903/in-markdown-what-is-the-best-way-to-link-to-a-fragment-of-a-page-i-e-some-id ...
分类:
其他好文 时间:
2017-06-24 18:45:31
阅读次数:
137
Description Problem C: Edit Step Ladders An edit step is a transformation from one word x to another word y such that x and y are words in the diction ...
分类:
其他好文 时间:
2017-06-24 18:24:44
阅读次数:
162
//strategy1是一个TextView SpannableStringBuilder builder1 = new SpannableStringBuilder(strategy1.getText().toString()); //设置前景色为蓝色 ForegroundColorSpan bl ...
分类:
其他好文 时间:
2017-06-24 17:23:56
阅读次数:
119
今天面试问到了php框架的特性,特此在这汇总一下,方便以后查看。 Thinkphp 3.2特性: 1.多表查询非常方便,在model 里几句代码就可以完成完成多表的关联操作。 2.融合了smarty 框架技术,使前台和后台独立分开 3.支持多种缓存技术,memcache 技术支持非常好 4.命名规范 ...
分类:
Web程序 时间:
2017-06-24 17:16:46
阅读次数:
201
一、下载地址: WPS Office for Linux Alpha21[2017-06-15] WPS Office Fonts 二、安装 ...
分类:
系统相关 时间:
2017-06-24 16:15:58
阅读次数:
217
EPEL,即Extra Packages for Enterprise Linux,这个软件仓库里有很多非常常用的软件,而且是专门针对RHEL设计的,对RHEL标准yum源是一个很好的补充,完全免费使用,由 Fedora项目维护,所以如果你使用的是RHEL,或者CentOS,Scientific等R ...
分类:
其他好文 时间:
2017-06-24 15:34:41
阅读次数:
245
courses/adminx.py operation/adminx.py organization/adminx.py ...
分类:
移动开发 时间:
2017-06-24 12:34:38
阅读次数:
457
问题 新装了CentOS 6.5系统,打算使用yum安装程序是出现了例如以下错误: Loading mirror speeds from cached hostfile Traceback (most recent call last): File "/usr/bin/yum", line 29, ...
分类:
其他好文 时间:
2017-06-24 11:10:48
阅读次数:
178