摘要:https://www.linode.com/docs/ https://www.digitalocean.com/community/
阅读全文
涛子 - 简单就是美成单纯魁增,永继振国兴,克复宗清政,广开家必升 |
|
05 2017 档案
摘要:https://www.linode.com/docs/ https://www.digitalocean.com/community/
阅读全文
摘要:```
mongostat
mongotop
``` ```
db.currentOp db.serverStatus() db.stats()
db.collection.stats()
``` ```
# 复制集监控
rs.status()
``` ```
# shard群集监控
sh.status()
``` ```
# 状态锁
use config
db.locks.find...
阅读全文
摘要:备份恢复命令 配置Hidden Secondary用于备份 备份shard群集 在新shard群集恢复数据
阅读全文
摘要:https://www.linode.com/docs/databases/mongodb/build database clusters with mongodb config Hashed Sharding Ranged Sharding
阅读全文
摘要:```bash
复制集(replica set)
复制集是一组mongodb的进程维护同样的数据集,提供冗余与高可用性。最小的复制集由3台服务器(或者3个实例)组成,最多1个primary和2个secondary实例,其中只有primary允许读写,secondary只读。secondary和primary的数据完全一致,它们之间通过primary实例的oplog异步(asynchronous)方...
阅读全文
摘要:```bash # Kernel sysctl configuration file for Linux # # Version 1.12 - 2015-09-30 # Michiel Klaver - IT Professional # http://klaver.it/linux/ for the latest version - http://klaver.it/bsd/ for a BSD...
阅读全文
摘要: ```bash # 使用或切换数据库 use ``` ```bash # 显示所有数据库 show dbs ``` ```bash # 显示所有collection show collections ```...
阅读全文
摘要:https://www.mongodb.com/blog/post/capacity planning and hardware provisioning mongodb ten minutes 安装 mongo命令行客户端登录有警告,用以下方法消除
阅读全文
摘要:http://www.cnblogs.com/evening/archive/2012/04/19/2457440.html 工作需要,将cvm.csv文件中的记录志入数据库, name, owner包含中文,python2.7仅支持unicode,所以文件中读出的中文需要解码(decode)一下,
阅读全文
摘要:```bash !/bin/bash 显示菜单(单选) display_menu(){ local soft={soft} you'd select: " eval local arr=(${${soft}_arr[@]}) while true d
阅读全文
|