本帖最后由 堡塔运维小林 于 2023-10-12 14:05 编辑
为了能快速了解并处理您的问题,请提供以下基础信息:
安装mongodb,当外部写的时候没有权限使用,怎么回事?
MongoServerError: not authorized on oops-framework to execute command { create: "counters", lsid: { id: UUID("ee6dfcfd-2218-4d3b-a3a2-694e2de22825") }, $db: "oops-framework" }
at Connection.onMessage (/root/weChat/test7/dist/node_modules/mongodb/lib/cmap/connection.js:231:30)
at MessageStream.<anonymous> (/root/weChat/test7/dist/node_modules/mongodb/lib/cmap/connection.js:61:60)
at MessageStream.emit (node:events:527:28)
at processIncomingData (/root/weChat/test7/dist/node_modules/mongodb/lib/cmap/message_stream.js:125:16)
at MessageStream._write (/root/weChat/test7/dist/node_modules/mongodb/lib/cmap/message_stream.js:33:9)
at writeOrBuffer (node:internal/streams/writable:389:12)
at _write (node:internal/streams/writable:330:10)
at MessageStream.Writable.write (node:internal/streams/writable:334:10)
at Socket.ondata (node:internal/streams/readable:754:22)
at Socket.emit (node:events:527:28) {
ok: 0,
code: 13,
codeName: 'Unauthorized',
|
|