db.collection.createIndex({ field1: 1, field2: -1 }); db.collection.find({ field1: "value" }).limit(10).skip(20).sort({ field2: 1 }).project({ field3: 1, field4: 1 }) { _id: ObjectId("61234567890"), name: "John Doe", address: { street: "123 Main St", city: "New York", state: "NY" }, orders: [ObjectId("234567890123"), ObjectId("345678901234")], } sudo vi /etc/security/limits.conf * soft nofile 64000 * hard nofile 64000


上一篇:
下一篇:
切换中文