摘要: 1.通过ps -ef|grep mongod找到mongodb的配置文件mongod.conf 将security:authorization: enabled注释 2.重启mongod systemctl restart mongod 3.登录mongo use admin db.system.u 阅读全文
posted @ 2018-12-13 16:40 不抛弃不放弃-刘彬 阅读(1144) 评论(0) 推荐(0) 编辑
摘要: data = json.loads(request.body)for key in data: try: data[key] = data[key].encode('ascii').decode('unicode_escape') # 针对发过来的'\\u5e7f\\u5dde\\u5e02\\u5 阅读全文
posted @ 2018-12-13 15:06 不抛弃不放弃-刘彬 阅读(240) 评论(0) 推荐(0) 编辑