按类别查询搜索结果
关于关键词 "Python" 的检测结果,共 7
码农528 | 2018-11-18 22:32:32 | 阅读(0) | 评论(0)
hxl | 2018-11-14 17:11:20 | 阅读(0) | 评论(0)
查看副本集的延迟情况mgset_yeemiao:PRIMARY> db.printReplicationInfo();configured oplog size:   25484.888916015625MBlog length start to end: 232228secs (64.51hrs)oplog first event time:  Mon Nov 12 2018 00:33:53 GMT+0800 (CST)oplog last event time:   Wed Nov 14 2018 17:04...【阅读全文】
lvchangxin1987 | 2015-12-27 22:14:37 | 阅读(340) | 评论(0)
    好记性不如烂笔头,哪天想不起来了来看看。点击(此处)折叠或打开#!/bin/env pythonfrom pymongo import MongoClientimport randomhost = '192.168.1.218'port = 28017database ...【阅读全文】
laoliulaoliu | 2014-04-14 15:29:42 | 阅读(2610) | 评论(1)
发现Berkeley DB是单文件的key value 的数据库,目前被Oracle 拥有,使用 AGPL3 commercial license. ubuntu 下安装libdb5.3-dev;Mac 下安装brew install berkeley-db。python driver 使用 PyBSDDB. 由于安装PyBSDDB出现了一些问题,需要设置环境变量(后文详述),于是我决定从源码开始编译。wget...【阅读全文】
laoliulaoliu | 2014-02-21 16:26:52 | 阅读(7690) | 评论(0)
文章来源:http://blog.csdn.net/daillo/article/details/7030910一、MongoDB 数据库操作  1. 连接数据库    import pymongo    conn = pymongo.Connection() # 连接本机数据库    # conn = pymongo.Connection(host="192.168.1.202") # 连接指定IP的数据库&nbs...【阅读全文】
haodong2008 | 2013-10-08 07:12:00 | 阅读(1) | 评论(0)
接上文... 此文为组件的配置信息 配置步骤: //----------------------------------------------------------------- 7a. 新建目录 --- /data/htdocs/django # sudo mkdir /data/htdocs # sudo mkdir /data/htdocs/django 7b. 修改nginx配置 --- /usr/local/nginx/conf/nginx.conf server { listen 8080; server_name django; location / { root /data/htdocs/django; include uwsgi_params; uwsgi_pass 127.0.0.1:8000; } acc【阅读全文】
expert1 | 2013-06-05 16:11:13 | 阅读(1780) | 评论(0)
1,安装非常简单,yum -y install redis ,python-redis2,配置,有几个地方需要注意# Set the number of databases. The default database is DB 0, you can select# a different one on a per-connection basis using SELECT where# dbid is a number between 0 and 'databases'-1databases 16#################...【阅读全文】