Mongolab连接错误 [英] Mongolab connection error

查看:82
本文介绍了Mongolab连接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用以下命令连接到MongoLab时,我收到以下消息:

I'm getting the following message when I try connecting to MongoLab with the command:

mongo ds035438.mongolab.com:35438/comeventsbw -u(myusername)-p(mypassword)

mongo ds035438.mongolab.com:35438/comeventsbw -u (myusername) -p (mypassword)

MongoDB Shell版本:3.0.6 连线至:ds035438.mongolab.com:35438/comeventsbw 2015-12-10T10:30:18.537-0700我在'/Users/benwong/.mongorc.js'的File :: open(),:: open中存储失败,并出现errno:13权限被拒绝 您的主文件夹中的".mongorc.js"文件无法执行

MongoDB shell version: 3.0.6 connecting to: ds035438.mongolab.com:35438/comeventsbw 2015-12-10T10:30:18.537-0700 I STORAGE In File::open(), ::open for '/Users/benwong/.mongorc.js' failed with errno:13 Permission denied The ".mongorc.js" file located in your home folder could not be executed

推荐答案

您可以尝试删除根目录.mongorc.js文件.要在Mac OS中执行此操作,可以使用cd ~/&&ls -al,如果看到root拥有的.mongorc.js,那么我们可以使用sudo rm .mongorc.js删除它.

You can try to delete the root directory .mongorc.js file. To do this in mac OS you can use cd ~/&&ls -al, if you see .mongorc.js that is owned by root, so we can use sudo rm .mongorc.js to delete it.

这篇关于Mongolab连接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆