我的常用命令语句

来源:互联网 发布:上网监管软件 编辑:程序博客网 时间:2024/05/22 06:04
db.testQuestion.find({"structDirId":19,"del":0,audit:1},{structId:1,pointId:1})
db.testQuestion.update({"structDirId":19,"del":0,audit:1},{$set:{audit:0}},false,true)
db.testQuestion.find({"structDirId":19,"del":0,pointId:{$in:[144,145,147,148]}},{structId:1,pointId:1,audit:1})




mongodump -d dbname -o dbdirectory
mongorestore -d dbname dbdirectory


systemctl stop firewalld.service


./bin/mongod -f MongoDB.conf 
原创粉丝点击