首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >单神服务器不会启动

单神服务器不会启动
EN

Stack Overflow用户
提问于 2021-04-13 07:51:29
回答 1查看 87关注 0票数 0

我遵循了mongodb官方安装指南,直到现在我尝试了从这里的东西到信件。

  1. 删除和重新安装mongodb
  2. 尝试使用mongodb包(mongodb包也不会以输出mongod.service启动)

这是我得到的输出

代码语言:javascript
复制
{"t":{"$date":"2021-04-13T13:09:20.760+05:30"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2021-04-13T13:09:20.763+05:30"},"s":"W",  "c":"ASIO",     "id":22601,   "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2021-04-13T13:09:20.763+05:30"},"s":"I",  "c":"NETWORK",  "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
{"t":{"$date":"2021-04-13T13:09:20.763+05:30"},"s":"I",  "c":"STORAGE",  "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":5972,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"GL62"}}
{"t":{"$date":"2021-04-13T13:09:20.763+05:30"},"s":"I",  "c":"CONTROL",  "id":23403,   "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.5","gitVersion":"ff5cb77101b052fa02da43b8538093486cf9b3f7","openSSLVersion":"OpenSSL 1.1.1f  31 Mar 2020","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2004","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2021-04-13T13:09:20.763+05:30"},"s":"I",  "c":"CONTROL",  "id":51765,   "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"20.04"}}}
{"t":{"$date":"2021-04-13T13:09:20.763+05:30"},"s":"I",  "c":"CONTROL",  "id":21951,   "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{}}}
{"t":{"$date":"2021-04-13T13:09:20.763+05:30"},"s":"E",  "c":"NETWORK",  "id":23024,   "ctx":"initandlisten","msg":"Failed to unlink socket file","attr":{"path":"/tmp/mongodb-27017.sock","error":"Operation not permitted"}}
{"t":{"$date":"2021-04-13T13:09:20.763+05:30"},"s":"F",  "c":"-",        "id":23091,   "ctx":"initandlisten","msg":"Fatal assertion","attr":{"msgid":40486,"file":"src/mongo/transport/transport_layer_asio.cpp","line":919}}
{"t":{"$date":"2021-04-13T13:09:20.763+05:30"},"s":"F",  "c":"-",        "id":23092,   "ctx":"initandlisten","msg":"\n\n***aborting after fassert() failure\n\n"}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-04-13 08:10:53

每个日志对象中的s字段是消息的严重性:i=信息,W=警告,E= Error。

如果您查找该日志中的第一个错误,您将看到它是:

代码语言:javascript
复制
{
   "t":{"$date":"2021-04-13T13:09:20.763+05:30"},
   "s":"E", 
   "c":"NETWORK", 
   "id":23024, 
   "ctx":"initandlisten",
   "msg":"Failed to unlink socket file",
   "attr":{"path":"/tmp/mongodb-27017.sock","error":"Operation not permitted"}
} 

这是文件权限问题。

您将需要修复指定文件的权限。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67070760

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档