自己玩虚拟机上mongo备份
rs.initiate({_id:"shard1RS",members:[{_id:1,host:"127.0.0.1:27018",priority:2},{_id:2,host:"127.0.0.1:37018"},{_id:3,host:"127.0.0.1:47018"}]})
rs.initiate({_id:"shard2RS",members:[{_id:1,host:"127.0.0.1:37019",priority:2},{_id:2,host:"127.0.0.1:27019"},{_id:3,host:"127.0.0.1:47019"}]})
rs.initiate({_id:"shard3RS",members:[{_id:1,host:"127.0.0.1:47010",priority:2},{_id:2,host:"127.0.0.1:27010"},{_id:3,host:"127.0.0.1:37010"}]})
rs.initiate({_id:"configRS",configsvr:true,members:[{_id:1,host:"127.0.0.1:27017",priority:2},{_id:2,host:"127.0.0.1:37017"},{_id:3,host:"127.0.0.1:47017"}]})
rs.status();
./mongod -f /home/jason/liuguanghui/mongo/shard/shard1.config
use admin
db.runCommand({"addShard":"shard1RS/127.0.0.1:27018" ,"maxsize":1024})
db.runCommand({"addShard":"shard2RS/127.0.0.1:37019" ,"maxsize":1024})
db.runCommand({"addShard":"shard3RS/127.0.0.1:47010" ,"maxsize":1024})
./mongos -configdb configRS/127.0.0.1:27017,127.0.0.1:37017,127.0.0.1:47017 -port 17018 -fork -logpath=/home/jason/liuguanghui/mongo2/router/logs/mongos.log
./mongos -configdb configRS/127.0.0.1:27017,127.0.0.1:37017,127.0.0.1:47017 -port 17018 -fork -logpath=/home/jason/liuguanghui/mongo2/router/logs/mongos.log
ps -ef|grep "./mongod -f /home/jason/liuguanghui/mongo"|grep -v grep|cut -c 9-15|xargs kill -9
ps -ef|grep "mongo"|grep -v grep|cut -c 9-15|xargs kill -9
sudo vi /opt/mongodb/mms/conf/conf-mms.properties
sudo service mongodb-mms start
ps -ef |grep mongo
jason 3153 1645 0 1月24 ? 00:05:29 ./mongod --config /home/jason/liuguanghui/mongo/config/mongo.config
jason 3381 1645 0 1月24 ? 00:05:31 ./mongod --config /home/jason/liuguanghui/mongo2/config/mongo.config
jason 3503 1645 0 1月24 ? 00:05:07 ./mongod --config /home/jason/liuguanghui/mongo3/config/mongo.config
root 9219 1645 0 13:48 ? 00:00:04 ./mongos -configdb configRS/127.0.0.1:27017,127.0.0.1:37017,127.0.0.1:47017 -port 17017 -fork -logpath=/home/jason/liuguanghui/mongo/router/logs/mongos.log
root 9262 1645 0 13:50 ? 00:00:04 ./mongos -configdb configRS/127.0.0.1:37017,127.0.0.1:27017,127.0.0.1:47017 -port 17018 -fork -logpath=/home/jason/liuguanghui/mongo2/router/logs/mongos.log
jason 9341 1645 0 13:53 ? 00:00:16 ./mongod -f /home/jason/liuguanghui/mongo/shard/shard1.config
jason 9433 1645 0 13:53 ? 00:00:17 ./mongod -f /home/jason/liuguanghui/mongo2/shard/shard1.config
jason 9525 1645 0 13:54 ? 00:00:20 ./mongod -f /home/jason/liuguanghui/mongo3/shard/shard1.config
jason 9619 1645 0 13:54 ? 00:00:15 ./mongod -f /home/jason/liuguanghui/mongo/shard/shard2.config
jason 9729 1645 0 13:54 ? 00:00:16 ./mongod -f /home/jason/liuguanghui/mongo/shard/shard3.config
jason 9826 1645 0 13:54 ? 00:00:16 ./mongod -f /home/jason/liuguanghui/mongo2/shard/shard2.config
jason 9939 1645 0 13:54 ? 00:00:16 ./mongod -f /home/jason/liuguanghui/mongo2/shard/shard3.config
jason 10071 1645 0 13:54 ? 00:00:14 ./mongod -f /home/jason/liuguanghui/mongo3/shard/shard2.config
jason 10191 1645 0 13:54 ? 00:00:15 ./mongod -f /home/jason/liuguanghui/mongo3/shard/shard3.config
mongodb+ 10939 1645 4 14:05 ? 00:01:35 /opt/mongodb/mms/jdk/bin/mms-app -d64 -Xss228k -Xmx4352m -Xms4352m -XX:NewSize=600m -Xmn1500m -XX:ReservedCodeCacheSize=128m -XX:-OmitStackTraceInFastThrow -Dxgen.webServerGzipEnabled=true -Duser.timezone=GMT -Dfile.encoding=UTF-8 -Dsun.net.client.defaultReadTimeout=20000 -Dsun.net.client.defaultConnectTimeout=10000 -Dorg.eclipse.jetty.util.UrlEncoding.charset=UTF-8 -Dorg.eclipse.jetty.server.Request.maxFormContentSize=4194304 -Dserver-env=hosted -Dapp-id=mms -Dbase-port=8080 -Dbase-ssl-port=8443 -Dapp-dir=/opt/mongodb/mms -Dxgen.webServerReuseAddress=true -Dmms.keyfile=/etc/mongodb-mms/gen.key -XX:SurvivorRatio=12 -XX:MaxTenuringThreshold=15 -XX:CMSInitiatingOccupancyFraction=62 -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseBiasedLocking -XX:+CMSParallelRemarkEnabled -XX:-OmitStackTraceInFastThrow -classpath /opt/mongodb/mms/classes/mms.jar:/opt/mongodb/mms/agent:/opt/mongodb/mms/agent/backup:/opt/mongodb/mms/agent/monitoring:/opt/mongodb/mms/agent/automation:/opt/mongodb/mms/agent/biconnector:/opt/mongodb/mms/data/unit:/opt/mongodb/mms/conf/:/opt/mongodb/mms/lib/* -Dlog_path=/opt/mongodb/mms/logs/mms0 -Dinstance-id=0 -Dpid-filename=/opt/mongodb/mms/tmp/mms-0.pid com.xgen.svc.core.ServerMain
mongodb+ 13967 1645 2 14:21 ? 00:00:30 /opt/mongodb/mms/jdk/bin/mms-app -DMONGO.BIN.PREFIX= -Dserver-env=hosted -Dapp-id=bgrid -Dapp-dir=/opt/mongodb/mms -Dlog_path=/opt/mongodb/mms/logs/daemon -Dmms.extraPropFile=conf-mms.properties -DDAEMON.ROOT.DIRECTORY= -Dnum.workers= -DDAEMON.BASE.PORT=27500 -DDAEMON.QUERYABLE.FS.PORT=8087 -DDAEMON.QUERYABLE.BASE_PORT=27700 -DDAEMON.QUERYABLE.MAX_MOUNTS=20 -DDAEMON.MONGODB.RELEASE.DIR= -Dmms.keyfile=/etc/mongodb-mms/gen.key -Dpid-filename=/opt/mongodb/mms/tmp/bgrid-0.pid -classpath /opt/mongodb/mms/classes/mms.jar:/opt/mongodb/mms/conf/:/opt/mongodb/mms/lib/* com.xgen.svc.brs.grid.Daemon
jason 14266 2626 0 14:40 pts/4 00:00:00 grep --color=auto mongo
自己玩虚拟机上mongo备份的更多相关文章
- 云计算之路-试用Azure:数据库备份压缩文件在虚拟机上的恢复速度测试
测试环境:Windows Azure上海机房,虚拟机配置为大型(四核,7 GB 内存),磁盘情况见下图. 数据库备份压缩文件大于为12.0 GB (12,914,327,552 bytes),放置于T ...
- 虚拟机上安装ArchLinux笔记
安装前的自白: 想使用ArchLinux,就直接在虚拟机上先装一个玩起来先.虚拟机使用的是Vmware,下载免费的个人版本就可以了. Arch Linux的版本为2016.4.1 内核为4.4.5 在 ...
- 【转载】Linux小白福利:《超容易的Linux系统管理入门书》(三)在虚拟机上安装Linux
本篇是Linux小白最佳实践第3篇,目的就是让白菜们自己动手安装个Linux玩玩.如果你是Linux小白,请务必亲自动手来安装.不想安装多个操作系统的,虚拟机是最佳选择,一台电脑上可以用虚拟机安装7. ...
- 在虚拟机上安装gho、esd(wim)系统镜像文件
gho.esd(wim)等文件不能被虚拟机识别,但如果把它们打包成iso就可以了. 另外,还需用到能在虚拟机上运行的WinPE的iso文件,本文用的是微PE. 注意:安装虚拟机提示operating ...
- Azure 虚拟机上的 SQL Server 常见问题
本主题提供有关运行 Azure 虚拟机中的 SQL Server 时出现的一些最常见问题的解答. 如果本文未解决你的 Azure 问题,请访问 MSDN 和 CSDN 上的 Azure 论坛. 你可以 ...
- 在 Azure 虚拟机上快速搭建 MongoDB 集群
MongoDB 是目前在 NoSQL 市场上非常受欢迎的一个数据库,本文介绍如何使用 Azure PowerShell 和 Azure CLI 在 Azure 虚拟机上搭建单节点 MongoDB(测试 ...
- 虚拟机上的Linux学习
title: 虚拟机上的Linux学习 date: 2018-08-08 15:48:28 updated: tags: [Linux,学习笔记] description: keywords: com ...
- 虚拟机上的企业网络管理系统(cisco works 2000安装配置)
虚拟机上的企业网络管理系统 北京 李晨光 相关文章 Cisco Works 2000 网络管理软件安装.配置全过程 http://you.video.sina.com.cn/b/18168631-14 ...
- 在VM虚拟机上安装Microsoft Dynamics CRM 2016 步骤图解及安装注意事项
安装Dynamics CRM 2016环境配置要求: 系统版本:Windows Server 2012 R2(必须) SQL 版本: SQLServer2014SP1-FullSlipstream-x ...
随机推荐
- API自动化测试 Soap UI工具介绍
一. 建立测试用例 (一) 基本概念 soapUI 中工程的层次结构 项目名称:位于最上层 (BookStoreTest),项目可以包含多个服务的定义. REST 服务定义:服务其实是对多个 ...
- [ActionScript 3.0] 通过BitmapData将对象保存成jpg图片
此方法需要用到JPGEncoder.as和BitString.as这两个类,是将BitmapData对象转换成ByteArray,然后通过FileStream把此ByteArray写入到文件保存成jp ...
- Python 标准库之 xml.etree.ElementTree
Python 标准库之 xml.etree.ElementTree Python中有多种xml处理API,常用的有xml.dom.*模块.xml.sax.*模块.xml.parser.expat模块和 ...
- python学习笔记之使用threading模块实现多线程(转)
综述 Python这门解释性语言也有专门的线程模型,Python虚拟机使用GIL(Global Interpreter Lock,全局解释器锁)来互斥线程对共享资源的访问,但暂时无法利用多处理器的优势 ...
- uC/OS-II 函数之任务相关函数
获得更多资料欢迎进入我的网站或者 csdn或者博客园 对于有热心的小伙伴在微博上私信我,说我的uC/OS-II 一些函数简介篇幅有些过于长应该分开介绍.应小伙伴的要求,特此将文章分开进行讲解.上文主要 ...
- P4850 [IOI2009]葡萄干raisins 记忆化搜索
$ \color{#0066ff}{ 题目描述 }$ 普罗夫迪夫的著名巧克力大师Bonny需要切开一板带有葡萄干的巧克力.巧克力是一个包含许多相同的方形小块的矩形.小块沿着巧克力的边排列成n行m列,即 ...
- Mathematica多元隐函数作图
例: ContourPlot3D[ 1/x + 1/y + 1/z == 1/10, {x, 最小值, 最大值}, {y, 最小值, 最大值}, {z, 最小值, 最大值}]
- Unity 动画 命名
unity标准的动画命名格式是 ?模型名@动画名 如boss1@idle ,这样导入进来之后unity会自动给这个动画命名为idle而不是Take 001.
- Robot Framework(Screenshot 库)
Screenshot 库 Scrennshot 同样为 Robot Framework 标准类库,我们只将它提供的其它中一个关键字“TakeScreenshot”,它用于截取到当前窗口.虽然 Scre ...
- selenium IDE 命令 一
Actions 描述了用户所会作出的操作.Action 有两种形式: action和actionAndWait, action会立即执行,而actionAndWait会假设需要较长时间才能得到该act ...