摘要: 配置参数设置://shardingShard Server1 192.168.0.5:20000 dbpath /data/liumongodb/data/shard1/data/ logpath dbpath /data/liumongodb/data/shard1/data/log/log.logShard Server2 192.168.0.5:20001 dbpath /data/liumongodb/data/shard2/data/ logpath dbpath /data/liumongodb/data/shard2/data/log/log.logConfig Server 1 阅读全文
posted @ 2012-11-20 16:55 Linux、Mongo、Php、Shell、Python、C 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 利用makefile功能对文件的c语言进行编译是非常方便的事情今天开始linuxC的学习,用这片博客记录自己C的学习历程: /* main.c */ #include "mytool1.h" #include "mytool2.h" int main(int argc,char **argv) { mytool1_print("hello"); mytool2_print("hello"); } /* mytool1.h */ #ifndef _MYTOOL_1_H #define _MYTOOL_1_H void 阅读全文
posted @ 2012-11-20 11:05 Linux、Mongo、Php、Shell、Python、C 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 一、MongoDB Replica Sets(副本集)简单的说就是有自动故障恢复功能的主从集群,主从集群和副本集的最为明显的区别是副本集没有固定的"主节点":整个集群会选举出来一个"主节点"当其不能正常工作时则变更到其他的节点,提高了系统的稳定性。 MongoDB Replica Sets的架构如图所示: 如上图所示,MongoDB Replica Sets的结构类似于以集群,完全可以把他当成一个集群,因为他确实与集群实现的作用是一样的:如果其中一个节点出现故障,其他的节点会马上将业务接管过来。而无需停机操作 二、MongoDB Replica Sets 阅读全文
posted @ 2012-11-20 11:03 Linux、Mongo、Php、Shell、Python、C 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 1<?phpif(!defined('BASEPATH'))exit('Nodirectscriptaccessallowed');2/**3*CodeIgniter4*5*AnopensourceapplicationdevelopmentframeworkforPHP5.1.6ornewer6*7*@packageCodeIgniter8*@authorExpressionEngineDevTeam9*@copyrightCopyright(c)2008-2011,EllisLab,Inc.10*@licensehttp://codeigniter.c 阅读全文
posted @ 2012-11-20 10:49 Linux、Mongo、Php、Shell、Python、C 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 1<?phpif(!defined('BASEPATH'))exit('Nodirectscriptaccessallowed');2/**3*CodeIgniter4*5*AnopensourceapplicationdevelopmentframeworkforPHP5.1.6ornewer6*7*@packageCodeIgniter8*@authorExpressionEngineDevTeam9*@copyrightCopyright(c)2008-2011,EllisLab,Inc.10*@licensehttp://codeigniter.c 阅读全文
posted @ 2012-11-20 10:34 Linux、Mongo、Php、Shell、Python、C 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 1<?phpif(!defined('BASEPATH'))exit('Nodirectscriptaccessallowed');2/**3*CodeIgniter4*5*AnopensourceapplicationdevelopmentframeworkforPHP5.1.6ornewer6*7*@packageCodeIgniter8*@authorExpressionEngineDevTeam9*@copyrightCopyright(c)2008-2011,EllisLab,Inc.10*@licensehttp://codeigniter.c 阅读全文
posted @ 2012-11-20 10:24 Linux、Mongo、Php、Shell、Python、C 阅读(280) 评论(0) 推荐(0) 编辑
摘要: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');/*** CodeIgniter** An open source application development framework for PHP 5.1.6 or newer** @package CodeIgniter* @author ExpressionEngine Dev Team* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.* @li 阅读全文
posted @ 2012-11-20 10:08 Linux、Mongo、Php、Shell、Python、C 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 1<?php23/*4*---------------------------------------------------------------5*APPLICATIONENVIRONMENT6*---------------------------------------------------------------7*8*Youcanloaddifferentconfigurationsdependingonyour9*currentenvironment.Settingtheenvironmentalsoinfluences10*thingslikeloggingander 阅读全文
posted @ 2012-11-20 08:36 Linux、Mongo、Php、Shell、Python、C 阅读(1696) 评论(0) 推荐(0) 编辑