在https://kubernetes.io/blog/2017/01/running-mongodb-on-kubernetes-with-statefulsets/ 基础上添加了密码认证,与解决提示权限mongo-sidecar提示权限错误问题 制作mongodb镜像(由于keyfile直接挂载 ...
分类:
数据库 时间:
2020-06-12 12:51:47
阅读次数:
184
作者:我叫刘半仙 https://my.oschina.net/liughDevelop/blog/1786631 线上服务器用的是某云的,欢快的完美运行着Tomcat,MySQL,MongoDB,ActiveMQ等程序。突然一则噩耗从前线传来:网站不能访问了! 此项目是我负责,我以150+的手速立 ...
分类:
其他好文 时间:
2020-06-12 11:05:33
阅读次数:
115
1: 慢查询: 启动慢查询常用配置:slow_query_log 启动停止记录慢查询日志slow_query_log_file 指定慢查询日志存储的路径及文件long_query_time指定记录慢查询日志SQL执行 时间的阈值(单位:秒,默认是10秒)log_queries_not_using_i... ...
分类:
其他好文 时间:
2020-06-12 00:47:25
阅读次数:
61
import pymongo myclient = pymongo.MongoClient('mongodb://localhost:27017/') mydb = myclient['mongodb'] mycol = mydb['sites'] # 添加 # # mydict = {'name' ...
分类:
数据库 时间:
2020-06-11 21:46:49
阅读次数:
70
1、mongodb是什么? MongoDB 是由 C++语言编写的,是一个基于分布式文件存储的开源数据库系统。 在高负载的情况下,添加更多的节点,可以保证服务器性能。 MongoDB 旨在给 WEB 应用提供可扩展的高性能数据存储解决方案。 MongoDB 将数据存储给一个文档,数据结构由键值(ke ...
分类:
数据库 时间:
2020-06-11 21:40:45
阅读次数:
75
mongodb中如果使用两个$or查询,如下方式是错误的 { $or : [{ "creatorId" : 1888 }, { "workerId" : 1888 }, { "guardianId" : 1888 }] ,$or:[{jobName: "19100901"},{jobAreaName ...
分类:
其他好文 时间:
2020-06-11 16:33:53
阅读次数:
61
[官网]下载mongodb-linux-x86_64-rhel62-3.4.3.tgz 通过FTP(WinSCP,FileZilla等)工具上传到“/apps”目录 使用解压命令解压到当前目录 tar -zvxf mongodb-linux-x86_64-rhel62-3.4.3.tgz 开启270 ...
分类:
数据库 时间:
2020-06-11 16:19:28
阅读次数:
53
1、下载安装文件 cd /root/data/soft wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-3.4.4.tgz tar -xzvf mongodb-linux-x86_64-rhel70-3.4.4.tg ...
分类:
数据库 时间:
2020-06-11 16:18:03
阅读次数:
65
const http = require('http'); // 连接数据库 const mongoose = require('mongoose'); const url = require('url'); const querystring = require('querystring'); / ...
分类:
数据库 时间:
2020-06-11 12:01:03
阅读次数:
75