gpt4 book ai didi

mongodb - 无法运行 mongod : Fatal Assertion 28562

转载 作者:行者123 更新时间:2023-12-02 04:13:39 24 4
gpt4 key购买 nike

新手正在学习node.js和mongodb。我目前正在尝试在 Mac 上安装 mongodb,当我尝试在终端上运行 mongod 时遇到以下问题。

2016-01-31T12:08:39.791+0800 I CONTROL  [initandlisten] MongoDB starting :    pid=13733 port=27017 dbpath=/data/db 64-bit host=Joshuas-MBP
2016-01-31T12:08:39.792+0800 I CONTROL [initandlisten] db version v3.2.1
2016-01-31T12:08:39.792+0800 I CONTROL [initandlisten] git version: a14d55980c2cdc565d4704a7e3ad37e4e535c1b2
2016-01-31T12:08:39.792+0800 I CONTROL [initandlisten] allocator: system
2016-01-31T12:08:39.792+0800 I CONTROL [initandlisten] modules: none
2016-01-31T12:08:39.792+0800 I CONTROL [initandlisten] build environment:
2016-01-31T12:08:39.792+0800 I CONTROL [initandlisten] distarch: x86_64
2016-01-31T12:08:39.792+0800 I CONTROL [initandlisten] target_arch: x86_64
2016-01-31T12:08:39.792+0800 I CONTROL [initandlisten] options: {}
2016-01-31T12:08:39.794+0800 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=4G,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-31T12:08:47.249+0800 E STORAGE [initandlisten] WiredTiger (22) [1454213327:242370][13733:0x7fff72b68000], WT_SESSION.create: 'table:_mdb_catalog' cannot be used until all column groups are created: Invalid argument
2016-01-31T12:08:47.259+0800 I - [initandlisten] Fatal Assertion 28562
2016-01-31T12:08:47.259+0800 I - [initandlisten]

***aborting after fassert() failure

在查看文档和在线教程后,我基本上在终端上执行了以下操作来安装 mongodb:

joshuatan ~ $ brew update
joshuatan ~ $ brew install mongodb
joshuatan ~ $ sudo mkdir -p /data/db
joshuatan ~ $ whoami
joshuatan
joshuatan ~ $ sudo chown joshuatan /data/db
joshuatan ~ $ mongod

我一直在 google/stackoverflow 中搜索,但找不到任何遇到类似错误的帖子。

我错过了什么吗?非常感谢任何帮助/指导...谢谢

最佳答案

唯一对我有用的是(Mac os)

rm -rf /tmp/mongodb-27017.soccd; cd /data/db;  rm -rf *;

然后只需 mongod 来启动它

关于mongodb - 无法运行 mongod : Fatal Assertion 28562,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35110372/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com