×
思维导图备注
MongoDB v4.2 Manual
首页
白天
夜间
小程序
阅读
书签
我的书签
添加书签
移除书签
db.version()
来源:MongoDB官网
浏览
366
扫码
分享
2019-12-01 11:57:23
db.version()
db.version()
db.
version
()
Returns:The version of the
mongod
or
mongos
instance.
当前内容版权归
MongoDB官网
或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问
MongoDB官网
.
上一篇:
下一篇:
Introduction
Getting Started
Create an Atlas Free Tier Cluster
Databases and Collections
Views
On-Demand Materialized Views
Capped Collections
Documents
BSON Types
Comparison/Sort Order
MongoDB Extended JSON (v2)
MongoDB Extended JSON (v1)
Installation
Install MongoDB Community Edition
Install on Linux
Install on Red Hat
Install using .tgz Tarball
Install on Ubuntu
Install using .tgz Tarball
Troubleshoot Ubuntu Installation
Install on Debian
Install using .tgz Tarball
Install on SUSE
Install using .tgz Tarball
Install on Amazon
Install using .tgz Tarball
Install on macOS
Install using .tgz Tarball
Install on Windows
Install using msiexec.exe
Install MongoDB Enterprise
Install on Linux
Install on Red Hat
Install using .tgz Tarball
Install on Ubuntu
Install using .tgz Tarball
Install on Debian
Install using .tgz Tarball
Install on SUSE
Install using .tgz Tarball
Install on Amazon
Install using .tgz Tarball
Install on macOS
Install on Windows
Install using msiexec.exe
Install with Docker
Upgrade MongoDB Community to MongoDB Enterprise
Upgrade to MongoDB Enterprise (Standalone)
Upgrade to MongoDB Enterprise (Replica Set)
Upgrade to MongoDB Enterprise (Sharded Cluster)
Verify Integrity of MongoDB Packages
The mongo Shell
Configure the mongo Shell
Access the mongo Shell Help
Write Scripts for the mongo Shell
Data Types in the mongo Shell
mongo Shell Quick Reference
MongoDB CRUD Operations
Insert Documents
Insert Methods
Query Documents
Query on Embedded/Nested Documents
Query an Array
Query an Array of Embedded Documents
Project Fields to Return from Query
Query for Null or Missing Fields
Iterate a Cursor in the mongo Shell
Update Documents
Update Methods
Delete Documents
Delete Methods
Bulk Write Operations
Retryable Writes
SQL to MongoDB Mapping Chart
Text Search
Text Indexes
Text Search Operators
Text Search in the Aggregation Pipeline
Text Search Languages
Geospatial Queries
Find Restaurants with Geospatial Queries
GeoJSON Objects
Read Isolation (Read Concern)
Read Concern "local"
Read Concern "available"
Read Concern "majority"
Read Concern "linearizable"
Read Concern "snapshot"
Write Acknowledgement (Write Concern)
MongoDB CRUD Concepts
Atomicity and Transactions
Read Isolation, Consistency, and Recency
Causal Consistency and Read and Write Concerns
Distributed Queries
Linearizable Reads via findAndModify
Query Plans
Query Optimization
Evaluate Performance of Current Operations
Optimize Query Performance
Write Operation Performance
Analyze Query Performance
Tailable Cursors
Aggregation
Aggregation Pipeline
Aggregation Pipeline Optimization
Aggregation Pipeline Limits
Aggregation Pipeline and Sharded Collections
Example with ZIP Code Data
Example with User Preference Data
Map-Reduce
Map-Reduce and Sharded Collections
Map-Reduce Concurrency
Map-Reduce Examples
Perform Incremental Map-Reduce
Troubleshoot the Map Function
Troubleshoot the Reduce Function
Aggregation Reference
Aggregation Pipeline Quick Reference
Aggregation Commands
Aggregation Commands Comparison
Variables in Aggregation Expressions
SQL to Aggregation Mapping Chart
Data Models
Data Modeling Introduction
Schema Validation
Data Modeling Concepts
Data Model Design
Operational Factors and Data Models
Data Model Examples and Patterns
Model Relationships Between Documents
Model One-to-One Relationships with Embedded Documents
Model One-to-Many Relationships with Embedded Documents
Model One-to-Many Relationships with Document References
Model Tree Structures
Model Tree Structures with Parent References
Model Tree Structures with Child References
Model Tree Structures with an Array of Ancestors
Model Tree Structures with Materialized Paths
Model Tree Structures with Nested Sets
Model Specific Application Contexts
Model Data for Atomic Operations
Model Data to Support Keyword Search
Model Monetary Data
Model Time Data
Data Model Reference
Database References
Transactions
Drivers API
Production Considerations
Production Considerations (Sharded Clusters)
Transactions and Operations
Indexes
Single Field Indexes
Compound Indexes
Multikey Indexes
Multikey Index Bounds
Text Indexes
Specify a Language for Text Index
Specify Name for text Index
Control Search Results with Weights
Limit the Number of Entries Scanned
Wildcard Indexes
Wildcard Index Restrictions
2dsphere Indexes
Query a 2dsphere Index
2d Indexes
Create a 2d Index
Query a 2d Index
2d Index Internals
Calculate Distance Using Spherical Geometry
geoHaystack Indexes
Create a Haystack Index
Query a Haystack Index
Hashed Indexes
Index Properties
TTL Indexes
Expire Data from Collections by Setting TTL
Unique Indexes
Partial Indexes
Case Insensitive Indexes
Sparse Indexes
Index Builds on Populated Collections
Build Indexes on Replica Sets
Build Indexes on Sharded Clusters
Index Intersection
Manage Indexes
Measure Index Use
Indexing Strategies
Create Indexes to Support Your Queries
Use Indexes to Sort Query Results
Ensure Indexes Fit in RAM
Create Queries that Ensure Selectivity
Indexing Reference
Security
Security Checklist
Enable Access Control
Authentication
Users
Add Users
Authentication Mechanisms
SCRAM
x.509
Use x.509 Certificates to Authenticate Clients
Enterprise Authentication Mechanisms
Kerberos Authentication
Configure MongoDB with Kerberos Authentication on Linux
Configure MongoDB with Kerberos Authentication on Windows
Troubleshoot Kerberos Authentication
Configure MongoDB with Kerberos Authentication and Active Directory Authorization
LDAP Proxy Authentication
Authenticate Using SASL and LDAP with ActiveDirectory
Authenticate Using SASL and LDAP with OpenLDAP
Authenticate and Authorize Users Using Active Directory via Native LDAP
LDAP Authorization
Internal/Membership Authentication
Deploy Replica Set With Keyfile Authentication
Update Replica Set to Keyfile Authentication
Update Replica Set to Keyfile Authentication (No Downtime)
Rotate Keys for Replica Sets
Deploy Sharded Cluster with Keyfile Authentication
Update Sharded Cluster to Keyfile Authentication
Update Sharded Cluster to Keyfile Authentication (No Downtime)
Rotate Keys for Sharded Clusters
Use x.509 Certificate for Membership Authentication
Upgrade from Keyfile Authentication to x.509 Authentication
Rolling Update of x.509 Cluster Certificates that Contain New DN
Role-Based Access Control
Built-In Roles
User-Defined Roles
Manage Users and Roles
Change Your Password and Custom Data
Collection-Level Access Control
TLS/SSL (Transport Encryption)
Configure mongod and mongos for TLS/SSL
TLS/SSL Configuration for Clients
Upgrade a Cluster to Use TLS/SSL
Configure MongoDB for FIPS
Encryption at Rest
Configure Encryption
Rotate Encryption Keys
Client-Side Field Level Encryption
Automatic Client-Side Field Level Encryption
Automatic Encryption Rules
Read/Write Support with Automatic Field Level Encryption
Appendix
Explicit (Manual/) Client-Side Field Level Encryption
Master Key and Data Encryption Key Management
Manage Data Encryption Keys
Limitations
Auditing
Configure Auditing
Configure Audit Filters
System Event Audit Messages
Network and Configuration Hardening
IP Binding
Configure Linux iptables Firewall for MongoDB
Configure Windows netsh Firewall for MongoDB
Implement Field Level Redaction
Security Reference
system.roles Collection
system.users Collection
Resource Document
Privilege Actions
Create a Vulnerability Report
Appendix
Appendix A - OpenSSL CA Certificate for Testing
Appendix B - OpenSSL Server Certificates for Testing
Appendix C - OpenSSL Client Certificates for Testing
Change Streams
Change Streams Production Recommendations
Change Events
Replication
Replica Set Members
Replica Set Primary
Replica Set Secondary Members
Priority 0 Replica Set Members
Hidden Replica Set Members
Delayed Replica Set Members
Replica Set Arbiter
Replica Set Oplog
Replica Set Data Synchronization
Replica Set Deployment Architectures
Three Member Replica Sets
Replica Sets Distributed Across Two or More Data Centers
Replica Set High Availability
Replica Set Elections
Rollbacks During Replica Set Failover
Replica Set Read and Write Semantics
Write Concern for Replica Sets
Read Preference
Server Selection Algorithm
Replica Set Deployment Tutorials
Deploy a Replica Set
Deploy a Replica Set for Testing and Development
Deploy a Geographically Redundant Replica Set
Add an Arbiter to Replica Set
Convert a Standalone to a Replica Set
Add Members to a Replica Set
Remove Members from Replica Set
Replace a Replica Set Member
Member Configuration Tutorials
Adjust Priority for Replica Set Member
Prevent Secondary from Becoming Primary
Configure a Hidden Replica Set Member
Configure a Delayed Replica Set Member
Configure Non-Voting Replica Set Member
Convert a Secondary to an Arbiter
Replica Set Maintenance Tutorials
Change the Size of the Oplog
Perform Maintenance on Replica Set Members
Force a Member to Become Primary
Resync a Member of a Replica Set
Configure Replica Set Tag Sets
Reconfigure a Replica Set with Unavailable Members
Manage Chained Replication
Change Hostnames in a Replica Set
Configure a Secondary’s Sync Target
Replication Reference
Replica Set Configuration
Replica Set Protocol Version
Troubleshoot Replica Sets
The local Database
Replica Set Member States
Read Preference Reference
Convert a Master-Slave Deployment to a Replica Set
Sharding
Sharded Cluster Components
Shards
Config Servers (metadata)
Router (mongos)
Shard Keys
Hashed Sharding
Deploy Sharded Cluster using Hashed Sharding
Ranged Sharding
Deploy Sharded Cluster using Ranged Sharding
Data Partitioning with Chunks
Create Chunks in a Sharded Cluster
Split Chunks in a Sharded Cluster
Merge Chunks in a Sharded Cluster
Modify Chunk Size in a Sharded Cluster
Balancer
Manage Sharded Cluster Balancer
Migrate Chunks in a Sharded Cluster
Administration
Config Server Administration
Replace a Config Server
View Cluster Configuration
Restart a Sharded Cluster
Migrate a Sharded Cluster to Different Hardware
Add Shards to a Cluster
Remove Shards from an Existing Sharded Cluster
Clear jumbo Flag
Back Up Cluster Metadata
Convert Sharded Cluster to Replica Set
Convert a Replica Set to a Sharded Cluster
Convert a Shard Standalone to a Shard Replica Set
Sharding Reference
Operational Restrictions
Troubleshoot Sharded Clusters
Config Database
Administration
Production Notes
Operations Checklist
Development Checklist
Performance
Database Profiler
Database Profiler Output
Disable Transparent Huge Pages (THP)
UNIX ulimit Settings
Configuration and Maintenance
Run-time Database Configuration
Upgrade to the Latest Revision of MongoDB
Manage mongod Processes
Terminate Running Operations
Rotate Log Files
Data Center Awareness
Workload Isolation in MongoDB Deployments
Zones
Segmenting Data by Location
Tiered Hardware for Varying SLA or SLO
Segmenting Data by Application or Customer
Distributed Local Writes for Insert Only Workloads
Manage Shard Zones
MongoDB Backup Methods
Back Up and Restore with Filesystem Snapshots
Back Up and Restore with MongoDB Tools
Restore a Replica Set from MongoDB Backups
Backup and Restore Sharded Clusters
Back Up a Sharded Cluster with File System Snapshots
Back Up a Sharded Cluster with Database Dumps
Schedule Backup Window for Sharded Clusters
Restore a Sharded Cluster
Recover a Standalone after an Unexpected Shutdown
Monitoring for MongoDB
Free Monitoring
Monitor MongoDB With SNMP on Linux
Monitor MongoDB Windows with SNMP
Troubleshoot SNMP
Storage
Storage Engines
WiredTiger Storage Engine
Change Standalone to WiredTiger
Change Replica Set to WiredTiger
Change Sharded Cluster to WiredTiger
In-Memory Storage Engine
Journaling
Manage Journaling
GridFS
Frequently Asked Questions
FAQ: MongoDB Fundamentals
FAQ: Indexes
FAQ: Concurrency
FAQ: Sharding with MongoDB
FAQ: Replication and Replica Sets
FAQ: MongoDB Storage
FAQ: MongoDB Diagnostics
Reference
Operators
Query and Projection Operators
Comparison Query Operators
$eq
$gt
$gte
$in
$lt
$lte
$ne
$nin
Logical Query Operators
$and
$not
$nor
$or
Element Query Operators
$exists
$type
Evaluation Query Operators
$expr
$jsonSchema
$mod
$regex
$text
$where
Geospatial Query Operators
$geoIntersects
$geoWithin
$near
$nearSphere
$box
$center
$centerSphere
$geometry
$maxDistance
$minDistance
$polygon
$uniqueDocs
Array Query Operators
$all
$elemMatch (query)
$size
Bitwise Query Operators
$bitsAllClear
$bitsAllSet
$bitsAnyClear
$bitsAnySet
$comment
Projection Operators
$ (projection)
$elemMatch (projection)
$meta
$slice (projection)
Update Operators
Field Update Operators
$currentDate
$inc
$min
$max
$mul
$rename
$set
$setOnInsert
$unset
Array Update Operators
$ (update)
$[]
$[<identifier>]
$addToSet
$pop
$pull
$push
$pullAll
$each
$position
$slice
$sort
Bitwise Update Operator
$bit
Aggregation Pipeline Stages
$addFields (aggregation)
$bucket (aggregation)
$bucketAuto (aggregation)
$collStats (aggregation)
$count (aggregation)
$currentOp (aggregation)
$facet (aggregation)
$geoNear (aggregation)
$graphLookup (aggregation)
$group (aggregation)
$indexStats (aggregation)
$limit (aggregation)
$listLocalSessions
$listSessions
$lookup (aggregation)
$match (aggregation)
$merge (aggregation)
$out (aggregation)
$planCacheStats
$project (aggregation)
$redact (aggregation)
$replaceRoot (aggregation)
$replaceWith (aggregation)
$sample (aggregation)
$set (aggregation)
$skip (aggregation)
$sort (aggregation)
$sortByCount (aggregation)
$unset (aggregation)
$unwind (aggregation)
Aggregation Pipeline Operators
$abs (aggregation)
$acos (aggregation)
$acosh (aggregation)
$add (aggregation)
$addToSet (aggregation)
$allElementsTrue (aggregation)
$and (aggregation)
$anyElementTrue (aggregation)
$arrayElemAt (aggregation)
$arrayToObject (aggregation)
$asin (aggregation)
$asinh (aggregation)
$atan (aggregation)
$atan2 (aggregation)
$atanh (aggregation)
$avg (aggregation)
$ceil (aggregation)
$cmp (aggregation)
$concat (aggregation)
$concatArrays (aggregation)
$cond (aggregation)
$convert (aggregation)
$cos (aggregation)
$dateFromParts (aggregation)
$dateToParts (aggregation)
$dateFromString (aggregation)
$dateToString (aggregation)
$dayOfMonth (aggregation)
$dayOfWeek (aggregation)
$dayOfYear (aggregation)
$degreesToRadians (aggregation)
$divide (aggregation)
$eq (aggregation)
$exp (aggregation)
$filter (aggregation)
$first (aggregation)
$floor (aggregation)
$gt (aggregation)
$gte (aggregation)
$hour (aggregation)
$ifNull (aggregation)
$in (aggregation)
$indexOfArray (aggregation)
$indexOfBytes (aggregation)
$indexOfCP (aggregation)
$isArray (aggregation)
$isoDayOfWeek (aggregation)
$isoWeek (aggregation)
$isoWeekYear (aggregation)
$last (aggregation)
$let (aggregation)
$literal (aggregation)
$ln (aggregation)
$log (aggregation)
$log10 (aggregation)
$lt (aggregation)
$lte (aggregation)
$ltrim (aggregation)
$map (aggregation)
$max (aggregation)
$mergeObjects (aggregation)
$meta (aggregation)
$min (aggregation)
$millisecond (aggregation)
$minute (aggregation)
$mod (aggregation)
$month (aggregation)
$multiply (aggregation)
$ne (aggregation)
$not (aggregation)
$objectToArray (aggregation)
$or (aggregation)
$pow (aggregation)
$push (aggregation)
$radiansToDegrees (aggregation)
$range (aggregation)
$reduce (aggregation)
$regexFind (aggregation)
$regexFindAll (aggregation)
$regexMatch (aggregation)
$reverseArray (aggregation)
$round (aggregation)
$rtrim (aggregation)
$second (aggregation)
$setDifference (aggregation)
$setEquals (aggregation)
$setIntersection (aggregation)
$setIsSubset (aggregation)
$setUnion (aggregation)
$size (aggregation)
$sin (aggregation)
$slice (aggregation)
$split (aggregation)
$sqrt (aggregation)
$stdDevPop (aggregation)
$stdDevSamp (aggregation)
$strcasecmp (aggregation)
$strLenBytes (aggregation)
$strLenCP (aggregation)
$substr (aggregation)
$substrBytes (aggregation)
$substrCP (aggregation)
$subtract (aggregation)
$sum (aggregation)
$switch (aggregation)
$tan (aggregation)
$toBool (aggregation)
$toDate (aggregation)
$toDecimal (aggregation)
$toDouble(aggregation)
$toInt (aggregation)
$toLong (aggregation)
$toObjectId (aggregation)
$toString (aggregation)
$toLower (aggregation)
$toUpper (aggregation)
$trim (aggregation)
$trunc (aggregation)
$type (aggregation)
$week (aggregation)
$year (aggregation)
$zip (aggregation)
Query Modifiers
$comment
$explain
$hint
$max
$maxTimeMS
$min
$orderby
$query
$returnKey
$showDiskLoc
$natural
Database Commands
Aggregation Commands
aggregate
count
distinct
mapReduce
Geospatial Commands
geoSearch
Query and Write Operation Commands
delete
find
findAndModify
getLastError
getMore
getPrevError
insert
resetError
update
Query Plan Cache Commands
planCacheClear
planCacheClearFilters
planCacheListFilters
planCacheListPlans
planCacheListQueryShapes
planCacheSetFilter
Authentication Commands
authenticate
getnonce
logout
User Management Commands
createUser
dropAllUsersFromDatabase
dropUser
grantRolesToUser
revokeRolesFromUser
updateUser
usersInfo
Role Management Commands
createRole
dropRole
dropAllRolesFromDatabase
grantPrivilegesToRole
grantRolesToRole
invalidateUserCache
revokePrivilegesFromRole
revokeRolesFromRole
rolesInfo
updateRole
Replication Commands
applyOps
isMaster
replSetAbortPrimaryCatchUp
replSetFreeze
replSetGetConfig
replSetGetStatus
replSetInitiate
replSetMaintenance
replSetReconfig
replSetResizeOplog
replSetStepDown
replSetSyncFrom
Sharding Commands
addShard
addShardToZone
balancerStart
balancerStatus
balancerStop
checkShardingIndex
cleanupOrphaned
enableSharding
flushRouterConfig
getShardMap
getShardVersion
isdbgrid
listShards
medianKey
moveChunk
movePrimary
mergeChunks
removeShard
removeShardFromZone
setShardVersion
shardCollection
shardingState
split
splitChunk
splitVector
unsetSharding
updateZoneKeyRange
Sessions Commands
abortTransaction
commitTransaction
endSessions
killAllSessions
killAllSessionsByPattern
killSessions
refreshSessions
startSession
Administration Commands
clean
cloneCollection
cloneCollectionAsCapped
collMod
compact
connPoolSync
convertToCapped
create
createIndexes
currentOp
drop
dropDatabase
dropConnections
dropIndexes
filemd5
fsync
fsyncUnlock
getParameter
killCursors
killOp
listCollections
listDatabases
listIndexes
logRotate
reIndex
renameCollection
setFeatureCompatibilityVersion
setParameter
shutdown
Diagnostic Commands
availableQueryOptions
buildInfo
collStats
connPoolStats
connectionStatus
cursorInfo
dataSize
dbHash
dbStats
diagLogging
driverOIDTest
explain
features
getCmdLineOpts
getLog
hostInfo
isSelf
listCommands
netstat
ping
profile
serverStatus
shardConnPoolStats
top
validate
whatsmyuri
Free Monitoring Commands
getFreeMonitoringStatus
setFreeMonitoring
System Events Auditing Commands
logApplicationMessage
mongo Shell Methods
Collection Methods
db.collection.aggregate()
db.collection.bulkWrite()
db.collection.copyTo()
db.collection.count()
db.collection.countDocuments()
db.collection.estimatedDocumentCount()
db.collection.createIndex()
db.collection.createIndexes()
db.collection.dataSize()
db.collection.deleteOne()
db.collection.deleteMany()
db.collection.distinct()
db.collection.drop()
db.collection.dropIndex()
db.collection.dropIndexes()
db.collection.ensureIndex()
db.collection.explain()
db.collection.find()
db.collection.findAndModify()
db.collection.findOne()
db.collection.findOneAndDelete()
db.collection.findOneAndReplace()
db.collection.findOneAndUpdate()
db.collection.getIndexes()
db.collection.getShardDistribution()
db.collection.getShardVersion()
db.collection.insert()
db.collection.insertOne()
db.collection.insertMany()
db.collection.isCapped()
db.collection.latencyStats()
db.collection.mapReduce()
db.collection.reIndex()
db.collection.remove()
db.collection.renameCollection()
db.collection.replaceOne()
db.collection.save()
db.collection.stats()
db.collection.storageSize()
db.collection.totalIndexSize()
db.collection.totalSize()
db.collection.update()
db.collection.updateOne()
db.collection.updateMany()
db.collection.watch()
db.collection.validate()
Cursor Methods
cursor.addOption()
cursor.batchSize()
cursor.close()
cursor.isClosed()
cursor.collation()
cursor.comment()
cursor.count()
cursor.explain()
cursor.forEach()
cursor.hasNext()
cursor.hint()
cursor.isExhausted()
cursor.itcount()
cursor.limit()
cursor.map()
cursor.max()
cursor.maxTimeMS()
cursor.min()
cursor.next()
cursor.noCursorTimeout()
cursor.objsLeftInBatch()
cursor.pretty()
cursor.readConcern()
cursor.readPref()
cursor.returnKey()
cursor.showRecordId()
cursor.size()
cursor.skip()
cursor.sort()
cursor.tailable()
cursor.toArray()
Database Methods
db.adminCommand()
db.aggregate()
db.cloneCollection()
db.cloneDatabase()
db.commandHelp()
db.copyDatabase()
db.createCollection()
db.createView()
db.currentOp()
db.dropDatabase()
db.eval()
db.fsyncLock()
db.fsyncUnlock()
db.getCollection()
db.getCollectionInfos()
db.getCollectionNames()
db.getLastError()
db.getLastErrorObj()
db.getLogComponents()
db.getMongo()
db.getName()
db.getPrevError()
db.getProfilingLevel()
db.getProfilingStatus()
db.getReplicationInfo()
db.getSiblingDB()
db.help()
db.hostInfo()
db.isMaster()
db.killOp()
db.listCommands()
db.logout()
db.printCollectionStats()
db.printReplicationInfo()
db.printShardingStatus()
db.printSlaveReplicationInfo()
db.resetError()
db.runCommand()
db.serverBuildInfo()
db.serverCmdLineOpts()
db.serverStatus()
db.setLogLevel()
db.setProfilingLevel()
db.shutdownServer()
db.stats()
db.version()
db.watch()
Query Plan Cache Methods
db.collection.getPlanCache()
PlanCache.clear()
PlanCache.clearPlansByQuery()
PlanCache.getPlansByQuery()
PlanCache.help()
PlanCache.listQueryShapes()
Bulk Operation Methods
db.collection.initializeOrderedBulkOp()
db.collection.initializeUnorderedBulkOp()
Bulk()
Bulk.execute()
Bulk.find()
Bulk.find.arrayFilters()
Bulk.find.collation()
Bulk.find.hint()
Bulk.find.remove()
Bulk.find.removeOne()
Bulk.find.replaceOne()
Bulk.find.updateOne()
Bulk.find.update()
Bulk.find.upsert()
Bulk.getOperations()
Bulk.insert()
Bulk.tojson()
Bulk.toString()
User Management Methods
db.auth()
db.changeUserPassword()
db.createUser()
db.dropUser()
db.dropAllUsers()
db.getUser()
db.getUsers()
db.grantRolesToUser()
db.removeUser()
db.revokeRolesFromUser()
db.updateUser()
passwordPrompt()
Role Management Methods
db.createRole()
db.dropRole()
db.dropAllRoles()
db.getRole()
db.getRoles()
db.grantPrivilegesToRole()
db.revokePrivilegesFromRole()
db.grantRolesToRole()
db.revokeRolesFromRole()
db.updateRole()
Replication Methods
rs.add()
rs.addArb()
rs.conf()
rs.freeze()
rs.help()
rs.initiate()
rs.printReplicationInfo()
rs.printSlaveReplicationInfo()
rs.reconfig()
rs.remove()
rs.slaveOk()
rs.status()
rs.stepDown()
rs.syncFrom()
Sharding Methods
sh.addShard()
sh.addShardTag()
sh.addShardToZone()
sh.addTagRange()
sh.disableBalancing()
sh.enableBalancing()
sh.disableAutoSplit
sh.enableAutoSplit
sh.enableSharding()
sh.getBalancerHost()
sh.getBalancerState()
sh.removeTagRange()
sh.removeRangeFromZone()
sh.help()
sh.isBalancerRunning()
sh.moveChunk()
sh.removeShardTag()
sh.removeShardFromZone()
sh.setBalancerState()
sh.shardCollection()
sh.splitAt()
sh.splitFind()
sh.startBalancer()
sh.status()
sh.stopBalancer()
sh.waitForBalancer()
sh.waitForBalancerOff()
sh.waitForPingChange()
sh.updateZoneKeyRange()
convertShardKeyToHashed
Free Monitoring Methods
db.disableFreeMonitoring()
db.enableFreeMonitoring()
db.getFreeMonitoringStatus
Object Constructors and Methods
BulkWriteResult()
Date()
ObjectId
ObjectId.getTimestamp()
ObjectId.toString()
ObjectId.valueOf()
UUID()
WriteResult()
WriteResult.hasWriteError()
WriteResult.hasWriteConcernError()
Connection Methods
connect()
Mongo()
Mongo.getDB()
Mongo.getReadPrefMode()
Mongo.getReadPrefTagSet()
Mongo.isCausalConsistency()
Mongo.setCausalConsistency()
Mongo.setReadPref()
Mongo.setSlaveOk()
Mongo.startSession()
Mongo.watch()
Session
Session.abortTransaction()
Session.commitTransaction()
Session.startTransaction()
SessionOptions
Native Methods
cat()
cd()
copyDbpath()
getHostName()
getMemInfo()
hostname()
isInteractive()
listFiles()
load()
ls()
md5sumFile()
mkdir()
pwd()
quit()
removeFile()
resetDbpath()
sleep()
setVerboseShell()
version()
_isWindows()
_rand()
Client-Side Field Level Encryption Methods
getKeyVault()
KeyVault.createKey()
KeyVault.deleteKey()
KeyVault.getKey()
KeyVault.getKeys()
KeyVault.addKeyAlternateName()
KeyVault.removeKeyAlternateName()
KeyVault.getKeyByAltName()
getClientEncryption()
ClientEncryption.encrypt()
ClientEncryption.decrypt()
MongoDB Package Components
mongod
mongos
mongo
mongod.exe
mongos.exe
mongodump
mongorestore
bsondump
mongoimport
mongoexport
mongostat
mongotop
mongoreplay
mongoldap
mongofiles
install_compass
Configuration File Options
Externally Sourced Configuration File Values
Convert Command-Line Options to YAML
Configuration File Settings and Command-Line Options Mapping
MongoDB Server Parameters
MongoDB Limits and Thresholds
Explain Results
System Collections
Connection String URI Format
Collation
Collation Locales and Default Parameters
MongoDB Wire Protocol
Log Messages
Exit Codes and Statuses
Glossary
Default MongoDB Port
Server Sessions
Release Notes
Release Notes for MongoDB 4.2
Compatibility Changes in MongoDB 4.2
Upgrade a Standalone to 4.2
Upgrade a Replica Set to 4.2
Upgrade a Sharded Cluster to 4.2
Downgrade 4.2 to 4.0
Downgrade 4.2 Standalone to 4.0
Downgrade 4.2 Replica Set to 4.0
Downgrade 4.2 Sharded Cluster to 4.0
4.2 Changelog
Release Notes for MongoDB 4.0
Compatibility Changes in MongoDB 4.0
Upgrade a Standalone to 4.0
Upgrade a Replica Set to 4.0
Upgrade a Sharded Cluster to 4.0
Downgrade 4.0 Standalone to 3.6
Downgrade 4.0 Replica Set to 3.6
Downgrade 4.0 Sharded Cluster to 3.6
4.0 Changelog
Release Notes for MongoDB 3.6
3.6 Changelog
Compatibility Changes in MongoDB 3.6
Upgrade a Standalone to 3.6
Upgrade a Replica Set to 3.6
Upgrade a Sharded Cluster to 3.6
Downgrade 3.6 Standalone to 3.4
Downgrade 3.6 Replica Set to 3.4
Downgrade 3.6 Sharded Cluster to 3.4
Release Notes for MongoDB 3.4
3.4 Changelog
Compatibility Changes in MongoDB 3.4
Upgrade a Standalone to 3.4
Upgrade a Replica Set to 3.4
Upgrade a Sharded Cluster to 3.4
Downgrade MongoDB 3.4 to 3.2
Downgrade 3.4 Standalone to 3.2
Downgrade 3.4 Replica Set to 3.2
Downgrade 3.4 Sharded Cluster to 3.2
Release Notes for MongoDB 3.2
3.2 Changelog
Compatibility Changes in MongoDB 3.2
JavaScript Changes in MongoDB 3.2
Upgrade MongoDB to 3.2
Downgrade MongoDB from 3.2
Release Notes for MongoDB 3.0
3.0 Changelog
Upgrade MongoDB to 3.0
Upgrade to SCRAM
Downgrade MongoDB from 3.0
Release Notes for MongoDB 2.6
2.6 Changelog
Compatibility Changes in MongoDB 2.6
Upgrade MongoDB to 2.6
Upgrade User Authorization Data to 2.6 Format
Downgrade MongoDB from 2.6
Release Notes for MongoDB 2.4
2.4 Changelog
JavaScript Changes in MongoDB 2.4
Upgrade MongoDB to 2.4
Compatibility and Index Type Changes in MongoDB 2.4
Release Notes for MongoDB 2.2
Release Notes for MongoDB 2.0
Release Notes for MongoDB 1.8
Release Notes for MongoDB 1.6
Release Notes for MongoDB 1.4
Release Notes for MongoDB 1.2.x
MongoDB Versioning
Technical Support
暂无相关搜索结果!
本文档使用
BookStack
构建
×
分享,让知识传承更久远
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
普通下载
下载码下载(免登录无限下载)
你与大神的距离,只差一个APP
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
温馨提示
每天每在网站阅读学习一分钟时长可下载一本电子书,每天连续签到可增加阅读时长
下载码方式下载:免费、免登录、无限制。
免费获取下载码
下载码
文档格式
PDF
EPUB
MOBI
码上下载
×
微信小程序阅读
您与他人的薪资差距,只差一个随时随地学习的小程序
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度