设为首页 - 加入收藏  
您的当前位置:首页 >数据库 >生产MongoDB 分片与集群方案 正文

生产MongoDB 分片与集群方案

来源:汇智坊编辑:数据库时间:2025-11-05 15:23:04
生产MongoDB 分片与集群方案
生产复制#master.conf  dbpath=/data/master  logpath=/data/log/mongodb/master/mongodb.log  pidfilepath=/var/run/mongo_master.pid  #directoryperdb=true logappend=true replSet=policydb  port=10002  oplogSize=10000  fork=true noprealloc=true profile=1  slowms=200  #slave.conf  dbpath=/data/slave  logpath=/data/log/mongodb/slave/mongodb.log  pidfilepath=/var/run/mongo_slave.pid  #directoryperdb=true logappend=true replSet=policydb  port=10001  oplogSize=10000  fork=true noprealloc=true profile=1  slowms=200  #arbiter.conf  dbpath=/data/arbiter  logpath=/data/log/mongodb/arbiter/mongodb.log  pidfilepath=/var/run/mongo_arbiter.pid  #directoryperdb=true logappend=true replSet=policydb  port=10000  oplogSize=10000  fork=true noprealloc=true profile=1  slowms=200  1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59.60.61.62.63.64.65.66.67.68.69.70.71.72.73.74.75.76.77.
上一篇:一早起来打开电脑,无法启动显示 no such device blablablagrub rescue>灰常的茫然,无奈,只得开启家中的那台老家伙。一顿baidu google 后,大概清楚是因为昨天晚上的自动升级导致,grub加载软件出了些问题。网上有两种解决方法:本人尝试一种:成功了! 由于这个问题相当普遍,所以写个小报告,为后人指点迷津~~~本人电脑装有xp 和 ubuntu10.04 。问题描述:开机初使化过程中出现的grub错误,原因可能多种,我这是由于升级导致的原因: 主引导记录MBR消失了。解决方法:一种是在windows中修复MBR(mbtfix。Exe)另一种是在ubuntu中修复MBR普及下知识MBR:The MBR may be used for one or more of the following:Holding a disks primary partition table.Bootstrapping operating systems, after the computers BIOS passes execution to machine code instructions contained within the MBR.Uniquely identifying individual disk media, with a 32-bit disk signature; even though it may never be used by the machine the disk is running on.我是通过第二种方法:自行制作一个livecd,一种可以自启动的linux 安装盘 。我没法烧cd,所以通过U盘制作了一个启动盘: 网址: http://www.ubuntu.com/desktop/get-ubuntu/download上面有很详细的步骤。1.首先下载一个ubuntu的iso镜像文件2.下载universal usb installer3.运行installer 將u盘制作成启动盘(移动硬盘不行)4设置电脑的加载顺序,“先启动usb设备”。重新启动5.直接启动ubuntu,打开terminal。输入 :sudo apt-get install lilosudo lilo -M /dev/sda mbr(忽略所有警告,我们只要mbr)6,重启,修改加载顺序,一切正常~~~
下一篇:红米4A夜景(探秘红米4A在暗夜中的惊艳表现)
最新文章

0.7016s , 11633.703125 kb

Copyright © 2025 Powered by 生产MongoDB 分片与集群方案,汇智坊  滇ICP备2023006006号-2

sitemap

Top