作者:我叫刘半仙 https://my.oschina.net/liughDevelop/blog/1786631 线上服务器用的是某云的,欢快的完美运行着Tomcat,MySQL,MongoDB,ActiveMQ等程序。突然一则噩耗从前线传来:网站不能访问了! 此项目是我负责,我以150+的手速立 ...
分类:
其他好文 时间:
2020-06-12 11:05:33
阅读次数:
115
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
方法/步骤 解决方法一: 1、同时按下Win7旗舰版电脑键盘上的win+R快捷键打开电脑的运行窗口,在打开的运行窗口中,输入regedit并单击回车,这样就可以打开注册表编辑器窗口了 2、在打开的注册表编辑器窗口中,点击展开左侧菜单中的HKEY_LOCAL_MACHINE\SOFTWARE\Micr ...
分类:
数据库 时间:
2020-06-11 16:34:27
阅读次数:
74
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
inux下安装MongoDB数据库 新建安装目录:根据实际自己选择:cd /data/project/tools 1.下载安装包 wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1404-3.6.5.tgz 下载完成解 ...
分类:
数据库 时间:
2020-06-11 11:58:13
阅读次数:
55