MongoDB will return one of the following codes and statuses when exiting. Use this guide to interpret logs and when troubleshooting issues with MongoDB退出时将返回以下代码和状态之一。使用本指南解释日志,并在排除mongod and mongos instances.mongod和mongos实例的问题时使用。
0 | |
1 | mongod as a generic failure when no other error codes apply.mongod将其作为通用故障返回。 |
2 | |
3 | mongod if there is a mismatch between hostnames specified on the command line and in the local.sources collection when running a replica set.local.sources集合中指定的主机名将不匹配,则由mongod返回。 |
4 | mongod (or mongod.exe) instance. The instance exits cleanly.mongod(或mongod.exe)实例支持的版本不同。实例干净地退出。 |
5 | mongos if a problem is encountered during initialization.mongos返回。 |
12 | mongod.exe process on Windows when it receives a Control-C, Close, Break or Shutdown event.mongod.exe进程收到Control-C、Close、Break或Shutdown事件时返回。 |
14 | |
20 | Message:
Message:
|
48 | mongod or mongos when an error prevents a newly started instance from listening for incoming connections.mongod或mongos返回。 |
50 | mongod during server initialization if it fails to fork the process.mongod无法分叉进程,则在服务器初始化期间返回。 |
51 | mongod during server initialization if the daemon fails to send a ready signal. The process exits cleanly.mongod在服务器初始化期间返回。该过程干净地退出。 |
61 | |
62 |
|
87 | mongod or mongos when the process health check triggers a crash.mongod或mongos返回。 |
100 | mongod when the process throws an uncaught exception.mongod返回。 |
102 | mongod or mongos when the process fails to rotate audit logs on startup.mongod或mongos返回。 |