mongodb - 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}}
解决方案
推荐阅读
- javascript - 将 js 文件导入 Vue.js 项目
- c - FILE 结构在操作系统和体系结构之间是否一致?
- angular-material - 从 Angular Material 多重下拉列表中隐藏值
- matlab - 使用过滤的加速度计数据的位移
- python-3.x - 使用条件更改嵌套列表
- c++ - 在 C++ 中拆分字符串的最佳实践
- javascript - 使用 Apollo + useContext 进行不必要的重新渲染以进行身份验证 (SSR)
- vue.js - 使用Nuxt.js和nuxt-i18n时如何进入/pages/vue文件的script标签
- javascript - ES6:如何在不失去屈服能力的情况下拆分异步生成器功能
- javascript - 如果存在某些 URL 参数,则发布某些 HTML