数据库
heybob
这个作者很懒,什么都没留下…
展开
-
MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk
环境:ubuntu14.04redis报错:MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs原创 2016-01-25 14:46:56 · 568 阅读 · 0 评论 -
ImportError: No module named redis
python中运行如下代码:import redispool = redis.ConnectionPool(host=DB_REDIS_HOST, port=DB_REDIS_PORT, password=DB_REDIS_PWD)redis_db = redis.Redis(connection_pool=pool, db=1)报错: ImportError: No modu原创 2017-07-07 17:16:28 · 3351 阅读 · 2 评论 -
ubuntu14.04安装mongodb3.4.4
参考:http://www.runoob.com/mongodb/mongodb-linux-install.htmlhttps://www.mongodb.com/download-center#community1,下载mongodb-linux-x86_64-ubuntu1404-3.4.4.tgz$ tar -xzvf mongodb-linux-x86_64-ubuntu1404原创 2017-07-07 17:21:24 · 1848 阅读 · 0 评论 -
mongoengine update() keywords must be strings
python2.7+mongoengine有报错: update() keywords must be strings写python碰到这个问题还是小小懵了一下,查了下发现:DictField字段更新的键必须是字符串类型原创 2017-07-07 17:32:22 · 2646 阅读 · 0 评论 -
ubuntu因为数据库占用空间,导致根目录空间不足,
ubuntu14.04, mongodb和mysql数据默认保存在根目录,占用空间太多,需修改路径一、mongodb:参照:https://www.howtoing.com/change-mongodb-default-data-path1sudo vi /etc/mongodb.conf将dbpath=/var/lib/mongodb改为dbpath=/home/cloud/db...原创 2018-09-19 17:09:33 · 915 阅读 · 0 评论