摘要: 一:基础信息1:系统:CentOS_6.6_x642:twemproxy 管理端口:99993:A quick checklist: Use newer version of gcc (older version of gcc has problems) autoreconf -fvi && ./c 阅读全文
posted @ 2016-02-25 15:50 study-notes 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 集群中有两种节点: 1>内存节点:只保存状态到内存(一个例外的情况是:持久的queue的持久内容将被保存到disk)2>磁盘节点:保存状态到内存和磁盘。内存节点虽然不写入磁盘 但是它执行比磁盘节点要好 集群中 只需要一个磁盘节点来保存状态 就足够了如果集群中只有内存节点 那么不能停止它们 否则所有的 阅读全文
posted @ 2016-02-25 15:18 study-notes 阅读(212) 评论(0) 推荐(0) 编辑
摘要: wget http://xdebug.org/files/xdebug-2.3.3.tgztar zvfx xdebug-2.3.3.tgz cd xdebug-2.3.3/usr/local/php-5.5.18/bin/phpize./configure --with-php-config=/u... 阅读全文
posted @ 2015-08-06 16:22 study-notes 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 一:安装mkdir -p /tools && cd /toolsuseradd -s /sbin/nologin wwwyum install -y gccwget http://www.haproxy.org/download/1.5/src/haproxy-1.5.10.tar.gztar zc... 阅读全文
posted @ 2015-07-23 10:02 study-notes 阅读(196) 评论(0) 推荐(0) 编辑
摘要: wget http://pecl.php.net/get/mongo-1.6.10.tgztar zvfx mongo-1.6.10.tgz cd mongo-1.6.10/usr/local/php-5.5.18/bin/phpize ./configure --enable-mongo=star... 阅读全文
posted @ 2015-07-16 15:21 study-notes 阅读(131) 评论(0) 推荐(0) 编辑
摘要: mkdir rabbitmq-ccd rabbitmq-cwget https://github.com/alanxz/rabbitmq-c/tarball/0.2tar zxvf 0.2rm -rf 0.2cd alanxz-rabbitmq-c-f8f4fc7wget https://githu... 阅读全文
posted @ 2015-07-03 17:56 study-notes 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Webpy+Nginx+Flup+Spawn-fcgi构建webpy开发环境------------------------------------------------------SYS_OS:CentOS 6.3x64一:为了统一环境 这里统一采用Python 2.7+wget http://... 阅读全文
posted @ 2015-06-18 11:17 study-notes 阅读(307) 评论(0) 推荐(0) 编辑
摘要: Redis 集群是一个提供在多个Redis间节点间共享数据的程序集.Redis集群并不支持处理多个keys的命令,因为这需要在不同的节点间移动数据,从而达不到像Redis那样的性能,在高负载的情况下可能会导致不可预料的错误.Redis 集群通过分区来提供一定程度的可用性,在实际环境中当某个节点宕机或... 阅读全文
posted @ 2015-05-28 17:56 study-notes 阅读(345) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python#coding:utf-8#author:zhangluya#mail:zhangluya1987@gmail.com#qq:64125568import redisimport MySQLdbimport osclass Redis: def con... 阅读全文
posted @ 2015-05-27 16:07 study-notes 阅读(432) 评论(0) 推荐(0) 编辑
摘要: [root@CHN-BJ-YJ-DB-MALL-02 ~]# cat /data/db_bak/xtrabackup_192.168.1.121_v1.5.sh#!/bin/sh#created by zhangluya#Date:2015-02-04#Info:Script about mysql... 阅读全文
posted @ 2015-05-27 15:48 study-notes 阅读(135) 评论(0) 推荐(0) 编辑