涛子 - 简单就是美

成单纯魁增,永继振国兴,克复宗清政,广开家必升

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  428 随笔 :: 0 文章 :: 19 评论 :: 22万 阅读

05 2017 档案

摘要:https://www.linode.com/docs/ https://www.digitalocean.com/community/ 阅读全文
posted @ 2017-05-26 16:32 北京涛子 阅读(178) 评论(0) 推荐(0) 编辑

摘要:``` mongostat mongotop ``` ``` db.currentOp db.serverStatus() db.stats() db.collection.stats() ``` ``` # 复制集监控 rs.status() ``` ``` # shard群集监控 sh.status() ``` ``` # 状态锁 use config db.locks.find... 阅读全文
posted @ 2017-05-26 14:50 北京涛子 阅读(207) 评论(0) 推荐(0) 编辑

摘要:备份恢复命令 配置Hidden Secondary用于备份 备份shard群集 在新shard群集恢复数据 阅读全文
posted @ 2017-05-26 09:50 北京涛子 阅读(308) 评论(0) 推荐(0) 编辑

摘要:https://www.linode.com/docs/databases/mongodb/build database clusters with mongodb config Hashed Sharding Ranged Sharding 阅读全文
posted @ 2017-05-24 16:49 北京涛子 阅读(309) 评论(0) 推荐(0) 编辑

摘要:```bash 复制集(replica set) 复制集是一组mongodb的进程维护同样的数据集,提供冗余与高可用性。最小的复制集由3台服务器(或者3个实例)组成,最多1个primary和2个secondary实例,其中只有primary允许读写,secondary只读。secondary和primary的数据完全一致,它们之间通过primary实例的oplog异步(asynchronous)方... 阅读全文
posted @ 2017-05-24 15:56 北京涛子 阅读(1391) 评论(0) 推荐(0) 编辑

摘要:```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... 阅读全文
posted @ 2017-05-22 15:26 北京涛子 阅读(364) 评论(0) 推荐(0) 编辑

摘要:![](http://images2015.cnblogs.com/blog/564063/201705/564063-20170519105007072-173374377.png) ```bash # 使用或切换数据库 use ``` ```bash # 显示所有数据库 show dbs ``` ```bash # 显示所有collection show collections ```... 阅读全文
posted @ 2017-05-19 10:32 北京涛子 阅读(252) 评论(0) 推荐(0) 编辑

摘要:https://www.mongodb.com/blog/post/capacity planning and hardware provisioning mongodb ten minutes 安装 mongo命令行客户端登录有警告,用以下方法消除 阅读全文
posted @ 2017-05-19 10:05 北京涛子 阅读(563) 评论(0) 推荐(0) 编辑

摘要:http://www.cnblogs.com/evening/archive/2012/04/19/2457440.html 工作需要,将cvm.csv文件中的记录志入数据库, name, owner包含中文,python2.7仅支持unicode,所以文件中读出的中文需要解码(decode)一下, 阅读全文
posted @ 2017-05-10 18:05 北京涛子 阅读(217) 评论(0) 推荐(0) 编辑

摘要:```bash !/bin/bash 显示菜单(单选) display_menu(){ local soft=1localprompt="which{soft} you'd select: " eval local arr=(${${soft}_arr[@]}) while true d 阅读全文
posted @ 2017-05-08 17:31 北京涛子 阅读(425) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示