首页 > 解决方案 > mongodb 启动时自动关闭

问题描述

我无法启动 mongodb 服务。日志显示它收到“CTRL_CLOSE_EVENT 信号”并自动关闭。但是我没有关闭命令行窗口。这是日志:

{"t":{"$date":"2021-01-28T13:00:48.971+08:00"},"s":"I",  "c":"CONTROL",  "id":23373,   "ctx":"thread1","msg":"CTRL_CLOSE_EVENT signal"}
{"t":{"$date":"2021-01-28T13:00:48.971+08:00"},"s":"I",  "c":"CONTROL",  "id":23371,   "ctx":"consoleTerminate","msg":"Received event, will terminate after current command ends","attr":{"controlCode":"CTRL_CLOSE_EVENT"}}
{"t":{"$date":"2021-01-28T13:00:48.971+08:00"},"s":"I",  "c":"REPL",     "id":4784900, "ctx":"consoleTerminate","msg":"Stepping down the ReplicationCoordinator for shutdown","attr":{"waitTimeMillis":10000}}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"COMMAND",  "id":4784901, "ctx":"consoleTerminate","msg":"Shutting down the MirrorMaestro"}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"SHARDING", "id":4784902, "ctx":"consoleTerminate","msg":"Shutting down the WaitForMajorityService"}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"NETWORK",  "id":20562,   "ctx":"consoleTerminate","msg":"Shutdown: going to close listening sockets"}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"NETWORK",  "id":4784905, "ctx":"consoleTerminate","msg":"Shutting down the global connection pool"}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"STORAGE",  "id":4784906, "ctx":"consoleTerminate","msg":"Shutting down the FlowControlTicketholder"}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"-",        "id":20520,   "ctx":"consoleTerminate","msg":"Stopping further Flow Control ticket acquisitions."}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"NETWORK",  "id":4784918, "ctx":"consoleTerminate","msg":"Shutting down the ReplicaSetMonitor"}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"SHARDING", "id":4784921, "ctx":"consoleTerminate","msg":"Shutting down the MigrationUtilExecutor"}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"CONTROL",  "id":4784925, "ctx":"consoleTerminate","msg":"Shutting down free monitoring"}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"STORAGE",  "id":4784927, "ctx":"consoleTerminate","msg":"Shutting down the HealthLog"}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"STORAGE",  "id":4784929, "ctx":"consoleTerminate","msg":"Acquiring the global lock for shutdown"}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"-",        "id":4784931, "ctx":"consoleTerminate","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"FTDC",     "id":4784926, "ctx":"consoleTerminate","msg":"Shutting down full-time data capture"}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"CONTROL",  "id":20565,   "ctx":"consoleTerminate","msg":"Now exiting"}
{"t":{"$date":"2021-01-28T13:00:48.972+08:00"},"s":"I",  "c":"CONTROL",  "id":23138,   "ctx":"consoleTerminate","msg":"Shutting down","attr":{"exitCode":12}}

标签: mongodb

解决方案


推荐阅读