摘要:
https://www.linode.com/docs/databases/mongodb/build database clusters with mongodb config Hashed Sharding Ranged Sharding 阅读全文
posted @ 2017-05-24 16:49
北京涛子
阅读(314)
评论(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
北京涛子
阅读(314)
评论(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
北京涛子
阅读(1405)
评论(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
北京涛子
阅读(370)
评论(0)
推荐(0)
摘要:
 ```bash # 使用或切换数据库 use ``` ```bash # 显示所有数据库 show dbs ``` ```bash # 显示所有collection show collections ```... 阅读全文
posted @ 2017-05-19 10:32
北京涛子
阅读(255)
评论(0)
推荐(0)
摘要:
https://www.mongodb.com/blog/post/capacity planning and hardware provisioning mongodb ten minutes 安装 mongo命令行客户端登录有警告,用以下方法消除 阅读全文
posted @ 2017-05-19 10:05
北京涛子
阅读(567)
评论(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
北京涛子
阅读(220)
评论(0)
推荐(0)
摘要:
```bash !/bin/bash 显示菜单(单选) display_menu(){ local soft=$1 local prompt="which ${soft} you'd select: " eval local arr=(\${${soft}_arr[@]}) while true d 阅读全文
posted @ 2017-05-08 17:31
北京涛子
阅读(430)
评论(0)
推荐(0)
摘要:
读取rrd https://github.com/h4wkmoon/collectd nagios/blob/master/plugins/collectd.py rrd画图 https://github.com/pommi/CGP python rrdtool https://github.com 阅读全文
posted @ 2017-04-06 18:27
北京涛子
阅读(229)
评论(0)
推荐(0)
摘要:
```bash
wget https://github.com/NagiosEnterprises/nagioscore/releases/download/nagios-4.3.1/nagios-4.3.1.tar.gz -O /root/rpmbuild/SOURCES/nagios-4.3.1.tar.gz
tar xvfz /root/rpmbuild/SOURCES/nagios-4.3... 阅读全文
posted @ 2017-04-06 17:23
北京涛子
阅读(139)
评论(0)
推荐(0)
摘要:
udp proxy 192.168.48.112 collectd proxy 192.168.48.113 host 192.168.48.114 阅读全文
posted @ 2017-04-06 11:58
北京涛子
阅读(552)
评论(0)
推荐(0)
|