运行mongo.bat后,服务为什么启动失败呀,是因为windows11的问题吗?
来源:1-1 课程导学

weixin_慕设计4430168
2022-12-23
D:\Program Files\MongoDB>cd bin
D:\Program Files\MongoDB\bin>mongod -f …/mongo.conf
{“t”:{“KaTeX parse error: Expected 'EOF', got '}' at position 38: …0:42.186+08:00"}̲,"s":"I", "c":…date”:“2022-12-23T23:10:42.190+08:00”},“s”:“W”, “c”:“ASIO”, “id”:22601, “ctx”:“main”,“msg”:“No TransportLayer configured during NetworkInterface startup”}
{“t”:{“KaTeX parse error: Expected 'EOF', got '}' at position 38: …0:42.190+08:00"}̲,"s":"I", "c":…date”:“2022-12-23T23:10:42.191+08:00”},“s”:“I”, “c”:“STORAGE”, “id”:4615611, “ctx”:“initandlisten”,“msg”:“MongoDB starting”,“attr”:{“pid”:20464,“port”:27017,“dbPath”:"…/data",“architecture”:“64-bit”,“host”:“zhaoshoudong”}}
{“t”:{“KaTeX parse error: Expected 'EOF', got '}' at position 38: …0:42.191+08:00"}̲,"s":"I", "c":…date”:“2022-12-23T23:10:42.191+08:00”},“s”:“I”, “c”:“CONTROL”, “id”:23403, “ctx”:“initandlisten”,“msg”:“Build Info”,“attr”:{“buildInfo”:{“version”:“4.4.3”,“gitVersion”:“913d6b62acfbb344dde1b116f4161360acd8fd13”,“modules”:[],“allocator”:“tcmalloc”,“environment”:{“distmod”:“windows”,“distarch”:“x86_64”,“target_arch”:“x86_64”}}}}
{“t”:{“KaTeX parse error: Expected 'EOF', got '}' at position 38: …0:42.191+08:00"}̲,"s":"I", "c":…date”:“2022-12-23T23:10:42.191+08:00”},“s”:“I”, “c”:“CONTROL”, “id”:21951, “ctx”:“initandlisten”,“msg”:“Options set by command line”,“attr”:{“options”:{“config”:"…/mongo.conf",“net”:{“bindIp”:“0.0.0.0”},“security”:{“authorization”:“enabled”},“storage”:{“dbPath”:"…/data"}}}}
{“t”:{“KaTeX parse error: Expected 'EOF', got '}' at position 38: …0:42.192+08:00"}̲,"s":"E", "c":…date”:“2022-12-23T23:10:42.192+08:00”},“s”:“I”, “c”:“REPL”, “id”:4784900, “ctx”:“initandlisten”,“msg”:“Stepping down the ReplicationCoordinator for shutdown”,“attr”:{“waitTimeMillis”:10000}}
{“t”:{“KaTeX parse error: Expected 'EOF', got '}' at position 38: …0:42.192+08:00"}̲,"s":"I", "c":…date”:“2022-12-23T23:10:42.192+08:00”},“s”:“I”, “c”:“SHARDING”, “id”:4784902, “ctx”:“initandlisten”,“msg”:“Shutting down the WaitForMajorityService”}
{“t”:{“KaTeX parse error: Expected 'EOF', got '}' at position 38: …0:42.192+08:00"}̲,"s":"I", "c":…date”:“2022-12-23T23:10:42.192+08:00”},“s”:“I”, “c”:“NETWORK”, “id”:4784905, “ctx”:“initandlisten”,“msg”:“Shutting down the global connection pool”}
{“t”:{“KaTeX parse error: Expected 'EOF', got '}' at position 38: …0:42.192+08:00"}̲,"s":"I", "c":…date”:“2022-12-23T23:10:42.192+08:00”},“s”:“I”, “c”:"-", “id”:20520, “ctx”:“initandlisten”,“msg”:“Stopping further Flow Control ticket acquisitions.”}
{“t”:{“KaTeX parse error: Expected 'EOF', got '}' at position 38: …0:42.192+08:00"}̲,"s":"I", "c":…date”:“2022-12-23T23:10:42.193+08:00”},“s”:“I”, “c”:“SHARDING”, “id”:4784921, “ctx”:“initandlisten”,“msg”:“Shutting down the MigrationUtilExecutor”}
{“t”:{“KaTeX parse error: Expected 'EOF', got '}' at position 38: …0:42.193+08:00"}̲,"s":"I", "c":…date”:“2022-12-23T23:10:42.193+08:00”},“s”:“I”, “c”:“STORAGE”, “id”:4784927, “ctx”:“initandlisten”,“msg”:“Shutting down the HealthLog”}
{“t”:{“KaTeX parse error: Expected 'EOF', got '}' at position 38: …0:42.193+08:00"}̲,"s":"I", "c":…date”:“2022-12-23T23:10:42.193+08:00”},“s”:“I”, “c”:"-", “id”:4784931, “ctx”:“initandlisten”,“msg”:“Dropping the scope cache for shutdown”}
{“t”:{“KaTeX parse error: Expected 'EOF', got '}' at position 38: …0:42.193+08:00"}̲,"s":"I", "c":…date”:“2022-12-23T23:10:42.193+08:00”},“s”:“I”, “c”:“CONTROL”, “id”:20565, “ctx”:“initandlisten”,“msg”:“Now exiting”}
{“t”:{"$date":“2022-12-23T23:10:42.193+08:00”},“s”:“I”, “c”:“CONTROL”, “id”:23138, “ctx”:“initandlisten”,“msg”:“Shutting down”,“attr”:{“exitCode”:100}}
请按任意键继续. . .
1回答
-
神思者
2022-12-24
报错信息里面看不出来是什么问题,你核对一下配置文件,如果还不行,那就用Docker版本的MongoDB试试
012022-12-24
相似问题
回答 2
回答 3