1.系统环境说明 CentOS 7.0 x64 版本 192.168.1.7 master 192.168.1.8 slave 192.168.1.9 slave 192.168.1.10 slave 2.安装前的准备工作 2.1 关闭防火墙 #?systemctl?status?firewalld.service??--查看防火墙...
分类:
其他好文 时间:
2014-09-15 13:02:39
阅读次数:
387
下载,解压mongodb文件。把解压的文件放在/opt/下面(存放目录安装自己习惯存放)# wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.4.tgz# tar -zxvfmongodb-linux-x86_64-2.0.4...
分类:
数据库 时间:
2014-09-15 12:54:08
阅读次数:
273
转载:http://blog.longwin.com.tw/2008/07/mysql_set_master_slave_replication_fase_online_2008/已经在线上运作的MySQL Master, 希望能在最短的时间内做mysqldump, 然后马上就让他还原上线, 所以主...
分类:
数据库 时间:
2014-09-15 12:39:48
阅读次数:
343
gnats == bug;tox = tales xilliaubuntu回显当前目录regionenable-servicedisable-servicepreferred;tempestuser-supplied;durationdjango;unified auth system;branch...
分类:
其他好文 时间:
2014-09-14 19:15:47
阅读次数:
246
一直想着建立一个属于自己的个人网站,直到今年年初开始做,到现在一期工程初步完成,网站一直是在断断续续进行,但是到现在完成的程度让我感觉还是挺满意。 网站初步的架构是django + mongodb+nginx +centos,个人特别喜欢python这个古老的语音,所以就选择django这个框...
分类:
Web程序 时间:
2014-09-14 01:20:36
阅读次数:
194
一:首先在Tomcat下的conf/context.xml文件里的contenx标签里配置数据源:name:指定Resource的JNDI名字auth:指定管理Resource的Manager,它有两个可选值:Container、ApplicationContainer是有容器创建和管理 Ap...
分类:
数据库 时间:
2014-09-13 19:59:55
阅读次数:
236
链接见http://api.mongodb.org/java/current/?_ga=1.111551751.200271495.1409034486整体结构分为com.mongodb是核心类。其中包含接口、实现类、枚举类型、异常类。见http://api.mongodb.org/java/cur...
分类:
数据库 时间:
2014-09-13 11:53:05
阅读次数:
185
1、Mongodb 数据库是动态生成的可以使用use 数据库名 来指定要使用的数据库,如果数据库不存在就自动生成一个2、插入一个文档:db.foo.insert({"name":"张三"}) 如果不存在_id列那么在插入的时候就会自动生成_id的列3、删除 db.blogs.remove({"t.....
分类:
数据库 时间:
2014-09-13 09:19:34
阅读次数:
287
1,MongoDb loguse local;db.startup_log.find();
分类:
数据库 时间:
2014-09-12 21:58:04
阅读次数:
217
1,yum dependenciesCentos,RHEL Fedora:$ sudo yum install git gcc automake autoconf libtoolDebian:$ sudo apt-get install git gcc automake autoconf libto...
分类:
数据库 时间:
2014-09-12 20:39:54
阅读次数:
195