gpt4 book ai didi

mongodb - MongoDB 中的致命断言

转载 作者:太空宇宙 更新时间:2023-11-03 16:53:15 25 4
gpt4 key购买 nike

official documentation 之后,我一直在 Ubuntu 14.04 上卸载并重新安装 Mongodb。现在几次了。但是,我不断得到这个:

2015-12-22T12:46:32.091+0000 I CONTROL  ***** SERVER RESTARTED *****
2015-12-22T12:46:32.096+0000 I CONTROL [initandlisten] MongoDB starting : pid=7039 port=27017 dbpath=/var/lib/mongodb 64-bit host=server-04
2015-12-22T12:46:32.096+0000 I CONTROL [initandlisten] db version v3.0.8
2015-12-22T12:46:32.096+0000 I CONTROL [initandlisten] git version: 83d8cc25e00e42856924d84e220fbe4a839e605d
2015-12-22T12:46:32.096+0000 I CONTROL [initandlisten] build info: Linux ip-10-187-89-126 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
2015-12-22T12:46:32.096+0000 I CONTROL [initandlisten] allocator: tcmalloc
2015-12-22T12:46:32.096+0000 I CONTROL [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "127.0.0.1", port: 27017 }, storage: { dbPath: "/var/lib/mongodb", journal: { enabled: true } }, syste$
2015-12-22T12:46:32.120+0000 E NETWORK [initandlisten] Failed to unlink socket file /tmp/mongodb-27017.sock errno:1 Operation not permitted
2015-12-22T12:46:32.120+0000 I - [initandlisten] Fatal Assertion 28578
2015-12-22T12:46:32.120+0000 I - [initandlisten]

***aborting after fassert() failure

我期待看到:[initandlisten] waiting for connections on port <port>但看不到它。是什么原因导致的?

最佳答案

从/tmp 目录中删除所有内容

sudo rm -rf /tmp/mongod*.sock

更改数据库路径和日志路径的所有权

chown -R mongodb:mongodb /var/lib/mongodb/
chown -R mongodb:mongodb /var/log/monogdb/

重启你的mongo

sudo service mongod start

关于mongodb - MongoDB 中的致命断言,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34416394/

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