首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >未找到`.mongorc.js`,但存在一个

未找到`.mongorc.js`,但存在一个
EN

Stack Overflow用户
提问于 2014-03-12 18:29:45
回答 3查看 9.3K关注 0票数 6

当我启动mongo客户端mongo.exe时,它打印出以下错误:

MongoDB shell version: 2.4.9
connecting to: test
Wed Mar 12 11:15:47.013 In File::open(), CreateFileW for 'C:\Users\Zolt�n\.mongo
rc.js' failed with errno:3 The system cannot find the path specified.
Wed Mar 12 11:15:47.014 In File::len(), GetFileSizeEx for 'C:\Users\Zolt�n\.mong
orc.js' failed with errno:6 The handle is invalid.
Wed Mar 12 11:15:47.015 In File::read(), SetFilePointerEx for 'C:\Users\Zolt�n\.
mongorc.js' tried to set the file pointer to 0 but failed with errno:6 The handl
e is invalid.
>

如您所见,我的用户路径是C:\User\Zoltán,字符á被读取为未知字符。我打赌这就是问题所在,为什么mongo找不到我的.mongorc.js

有没有什么方法可以显式设置.mongorc.js的路径。也许可以用一个配置文件?

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

https://stackoverflow.com/questions/22348604

复制
相关文章

相似问题

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