即使已经安装了mongodb,我在安装解析时是不是需要安装mongodb-runner

Posted

技术标签:

【中文标题】即使已经安装了mongodb,我在安装解析时是不是需要安装mongodb-runner【英文标题】:do i need to install mongodb-runner when installing parse even thought mongodb is already insstalled即使已经安装了mongodb,我在安装解析时是否需要安装mongodb-runner 【发布时间】:2019-09-15 20:42:22 【问题描述】:

我正在 linux vps 上安装解析服务器,我已经安装了 nodejs 和 mongo db,现在我正在关注这里写的 https://github.com/parse-community/parse-server 当我尝试执行 $ mongodb-runner start 我有这个错误

◟ Starting a MongoDB deployment to test against...✔  Downloaded MongoDB 4.2.0
◠ Starting a MongoDB deployment to test against...mongodb-runner:bin:mongodb-r                    unner-worker.js Unexpected error. Exiting.  Error: Command failed: mongod --set                    Parameter enableTestCommands=1 --port 27017 --dbpath /home/admoon/.mongodb/data/                    standalone --logpath /home/admoon/.mongodb/runner/standalone.log
mongod: error while loading shared libraries: libcurl.so.4: cannot open shared o                    bject file: No such file or directory

 at ChildProcess.exithandler (child_process.js:294:12)
 at ChildProcess.emit (events.js:198:13)
 at maybeClose (internal/child_process.js:982:16)
 at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
killed: false,
code: 127,
signal: null,
cmd:
'mongod --setParameter enableTestCommands=1 --port 27017 --dbpath /home/admoo                    n/.mongodb/data/standalone --logpath /home/admoon/.mongodb/runner/standalone.log                    ',
output:
 stderr:
   [ 'mongod: error while loading shared libraries: libcurl.so.4: cannot open                     shared object file: No such file or directory',
     '' ],
  stdout: [ '' ]  

【问题讨论】:

没有。您可以设置 Parse Server 以连接到现有的 MongoDB。 @DaviMacêdo 非常感谢 【参考方案1】:

安装 mongodb 后无需安装 mongo-db runner 感谢@DaviMacedo

【讨论】:

以上是关于即使已经安装了mongodb,我在安装解析时是不是需要安装mongodb-runner的主要内容,如果未能解决你的问题,请参考以下文章

即使已经安装了应用程序,分支深度链接也会打开 App Store 而不是 App

我无法运行 mongodb,即使我已经关注了这里的大多数帖子

找不到模块:错误:使用 MongoDB 时无法解析“dns”

即使在安装框架后也没有这样的模块“解析”错误

iOS:使用解析连接到 MongoDB

如何查看mongodb是不是安装成功