一.安装MongoDB (1)redhat或centos6.2以上系统 (2)系统开发包完整 (3)ip地址和hosts文件解析正常 (4)iptables防火墙&SElinux关闭 (5)关闭大页内存机制 ############################################## ...
分类:
数据库 时间:
2021-01-13 11:29:01
阅读次数:
0
开启慢查询Profiling Profiling级别说明 0:关闭,不收集任何数据。 1:收集慢查询数据,默认是100毫秒。 2:收集所有数据 1、通过修改配置文件开启Profiling 修改启动mongo.conf,插入以下代码 #开启慢查询,200毫秒的记录 profile = 1 slowms ...
分类:
数据库 时间:
2021-01-13 11:20:42
阅读次数:
0
1、安装 BartyCrouch github地址 安装 brew install bartycrouch 更新 brew upgrade bartycrouch 2、生成storyboard Main.strings和 Localizable.strings 3、执行如下命令 1、cd ~/Des ...
分类:
其他好文 时间:
2021-01-13 10:58:29
阅读次数:
0
Ubuntu 18.04 (Bionic) 安装 MongoDB (Install MongoDB Community Edition on Ubuntu) 查看 Ubuntu 版本 lsb_release -a Distributor ID: Ubuntu Description: Ubuntu ...
分类:
数据库 时间:
2021-01-12 11:08:09
阅读次数:
0
1、安装过程中常见的问题 git clone 提示 ssl 错误 # 一般是由于时间不同步, 或者网络有问题导致的 # 可以尝试下载 releases 包 pip install 提示 ssl 错误 # 参考第一条解决 pip install 提示 download 错误 # 一般是由于网络不好, ...
分类:
其他好文 时间:
2021-01-12 10:58:33
阅读次数:
0
实战2:使用selenium爬取淘宝数据,保存在mongodb 配置文件 MONGO_URL = 'localhost' MONGO_DB = 'taobao' MONGO_TABLE = 'yintiao' 爬虫文件 from selenium import webdriver from sele ...
分类:
数据库 时间:
2021-01-11 10:47:01
阅读次数:
0
常见的http状态码 100:继续 客户端应当继续发送请求。客户端应当继续发送请求的剩余部分,或者如果请求已经完成,忽略这个响应。 101: 转换协议 在发送完这个响应最后的空行后,服务器将会切换到在Upgrade 消息头中定义的那些协议。只有在切换新的协议更有好处的时候才应该采取类似措施。 102 ...
分类:
Web程序 时间:
2021-01-07 12:16:39
阅读次数:
0
vim mongodb.yaml apiVersion: apps/v1 kind: Deployment metadata: name: mongodb labels: app: mongodb spec: replicas: 1 selector: matchLabels: app: mongo ...
分类:
数据库 时间:
2021-01-07 11:58:16
阅读次数:
0
MongoDB语法与现有关系型数据库SQL语法比较 MongoDB语法 MySql语法 db.test.find({'name':'foobar'})<==> select * from test where name='foobar' db.test.find() <==> select *fro ...
分类:
数据库 时间:
2021-01-05 11:00:27
阅读次数:
0
今天执行:net start MongoDB 开启服务时,出现服务名无效问题。 百度搜了一些文章,终于找到了解决办法: 1、新建db文件夹和log文件夹 2、新建mongo.config文件 dbpath=D:\Program Files\MongoDB\Server\4.2\data\db log ...
分类:
数据库 时间:
2021-01-04 11:27:12
阅读次数:
0