MongoDB在Vagrant Centos Box中不起作用

编程入门 行业动态 更新时间:2024-10-24 16:24:23
本文介绍了MongoDB在Vagrant Centos Box中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我登录到Centos 7.1 Box时,我似乎无法派生MongoDB守护程序的实例.我已经创建了data/db文件夹,并且每次尝试运行

I cant seem to fork off an instance of the MongoDB daemon when I am logged in to a Centos 7.1 Box. I have created the data/db folder and everytime I try to run

./bin/mongod --dbpath data/db

我一团糟

2016-01-26T00:44:23.820+0000 I CONTROL [initandlisten] MongoDB starting : pid=2735 port=27017 dbpath=data/db 64-bit host=localhost.localdomain 2016-01-26T00:44:23.820+0000 I CONTROL [initandlisten] db version v3.2.1 2016-01-26T00:44:23.820+0000 I CONTROL [initandlisten] git version: a14d55980c2cdc565d4704a7e3ad37e4e535c1b2 2016-01-26T00:44:23.821+0000 I CONTROL [initandlisten] allocator: tcmalloc 2016-01-26T00:44:23.821+0000 I CONTROL [initandlisten] modules: none 2016-01-26T00:44:23.821+0000 I CONTROL [initandlisten] build environment: 2016-01-26T00:44:23.821+0000 I CONTROL [initandlisten] distarch: x86_64 2016-01-26T00:44:23.821+0000 I CONTROL [initandlisten] target_arch: x86_64 2016-01-26T00:44:23.821+0000 I CONTROL [initandlisten] options: { storage: { dbPath: "data/db" } } 2016-01-26T00:44:23.842+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0), 2016-01-26T00:44:23.853+0000 E STORAGE [initandlisten] WiredTiger (22) [1453769063:853352][2735:0x7f09f2eddcc0], connection: data/db/WiredTiger.wt: fsync: Invalid argument 2016-01-26T00:44:23.856+0000 I - [initandlisten] Fatal Assertion 28561 2016-01-26T00:44:23.856+0000 I - [initandlisten] ***aborting after fassert() failure

奇怪的是,我之前做过,而且奏效了.可能是什么问题?

The strange thing is I did it earlier and it worked. What could be the problem?

推荐答案

事实证明,将下载的mongodb数据库放入主机和虚拟机之间的同步文件夹中会导致某种类型的权限问题或配置问题.

It turns out that putting the downloaded mongodb database in the synced folder between the host machine and the virtual machine caused some type of permissions issue or configuration issue.

当您将其从同步文件夹(很可能包含Vagrantfile)中取出并放入未同步/共享的文件夹中时,它似乎工作正常.以为id可以节省我5个小时所浪费的时间:-)

When you take it out of the synced folder - which most likely has the Vagrantfile - and put it in a folder thats not synced/shared it seems to work just fine. Thought id save someone the 5 hours I wasted :-)

更多推荐

MongoDB在Vagrant Centos Box中不起作用

本文发布于:2023-11-22 13:08:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1617538.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:中不   Vagrant   MongoDB   Box   Centos

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!