- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
linux(ubuntu) 上的 mongod 命令吐出随机消息,mongo 拒绝连接 127.0.0.1:27017
终端消息
{"t":{"$date":"2020-08-20T22:33:58.002+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":"2020-08-20T22:33:58.005+05:30"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2020-08-20T22:33:58.005+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":"2020-08-20T22:33:58.005+05:30"},"s":"I", "c":"STORAGE", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":17540,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"AmrutheshwarO"}}
{"t":{"$date":"2020-08-20T22:33:58.005+05:30"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.0","gitVersion":"563487e100c4215e2dce98d0af2a6a5a2d67c5cf","openSSLVersion":"OpenSSL 1.1.1f 31 Mar 2020","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2004","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2020-08-20T22:33:58.005+05:30"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"20.04"}}}
{"t":{"$date":"2020-08-20T22:33:58.005+05:30"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{}}}
{"t":{"$date":"2020-08-20T22:33:58.006+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":"2020-08-20T22:33:58.006+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":"2020-08-20T22:33:58.006+05:30"},"s":"F", "c":"-", "id":23092, "ctx":"initandlisten","msg":"\n\n***aborting after fassert() failure\n\n"}
随后在终端 上运行 mongo 时(我在不同的终端窗口上运行此命令)
MongoDB shell version v4.4.0
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:362:17
@(connect):2:6
exception: connect failed
exiting with code 1
我的mongodb版本是
db version v4.4.0
Build Info: {
"version": "4.4.0",
"gitVersion": "563487e100c4215e2dce98d0af2a6a5a2d67c5cf",
"openSSLVersion": "OpenSSL 1.1.1f 31 Mar 2020",
"modules": [],
"allocator": "tcmalloc",
"environment": {
"distmod": "ubuntu2004",
"distarch": "x86_64",
"target_arch": "x86_64"
}
}```
最佳答案
我遇到了同样的问题。删除/tmp/mongodb-27017.sock 应该修复它。
您可以在日志中看到它无法删除它:
{
"t": {
"$date": "2020-08-20T22:33:58.006+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"
}
}
关于linux - linux(ubuntu)上的mongod命令吐出随机消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63510212/
我需要我正在构建的 clojure 应用程序的配置文件。它们应该足够容易让用户在文本编辑器中修改并且方便我的程序阅读。 我正在考虑序列化 s-表达式并使用 spit 将其放入用户主目录中的配置文件中,
我已经使用 GridLayout 几个星期了,我在打电话时注意到了这一点 gridLayout.requestLayout() 它在 LogCat 中吐出以下调试级消息: D/android.widg
我告诉 visual studio 构建一个 .dll,但无论我做什么,它只会构建一个 .lib。我将配置类型设置为 .dll,扩展名设置为 .dll,在我有“_WINDLL”的预处理器指令中,我将输
我想将 ebook-convert 与 Gitbook 一起运行,以从我的静态文件生成我自己的 pdf 文件。当我输入 ebook-convert 时,我收到了这个愚蠢的错误信息…… 我安装了 pyt
一般FindOne fmt.print result { }。我需要输出值。 我正在使用来自文档的几乎标准设置:https://docs.mongodb.com/ecosystem/drivers/g
我们已经为 Xinha 文本编辑器编写了一个插件来处理脚注。你可以看看: http://www.nicholasbs.com/xinha/examples/Newbie.html 为了处理Webkit
我在 pyramid 框架上有一个应用程序,我到处调用 request.route_url。我刚刚将我的应用程序切换到 HTTPS,所有链接仍然以 HTTP 形式出现。 是否有一个全局设置我可以放在某
我是一名优秀的程序员,十分优秀!